summaryrefslogtreecommitdiff
path: root/linkers/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'linkers/wscript')
-rw-r--r--linkers/wscript15
1 files changed, 14 insertions, 1 deletions
diff --git a/linkers/wscript b/linkers/wscript
index 10fe2a0..23d3f9c 100644
--- a/linkers/wscript
+++ b/linkers/wscript
@@ -58,6 +58,7 @@ def build(bld):
rtemstoolkit + '/elftoolchain/libelf',
rtemstoolkit + '/elftoolchain/libdwarf',
rtemstoolkit + '/elftoolchain/common',
+ rtemstoolkit + '/elftoolchain/libelftc',
rtemstoolkit + '/libiberty']
if bld.env.DEST_OS == 'win32':
conf['includes'] += [rtemstoolkit + '/win32']
@@ -70,7 +71,7 @@ def build(bld):
#
# The list of modules.
#
- modules = ['rld', 'dwarf', 'elf', 'iberty']
+ modules = ['rld', 'elftc', 'dwarf', 'elf', 'iberty']
#
# The list of defines
@@ -165,5 +166,17 @@ def build(bld):
linkflags = conf['linkflags'],
use = modules)
+ #
+ # Build the address to line tool.
+ #
+ bld.program(target = 'rtems-addr2line',
+ source = ['rtems-addr2line.cpp'],
+ defines = defines,
+ includes = ['.'] + conf['includes'],
+ cflags = conf['cflags'] + conf['warningflags'],
+ cxxflags = conf['cxxflags'] + conf['warningflags'],
+ linkflags = conf['linkflags'],
+ use = modules)
+
def tags(ctx):
ctx.exec_command('etags $(find . -name \*.[sSch])', shell = True)