From 1318c11e5df8ccc86383e4ce255e68f3279a94d8 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 24 May 2018 18:05:44 +1200 Subject: linkers: Add an address to line tool. This tool provides a way to check the DWARF toolkit support for finding lines from addresses. --- linkers/wscript | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'linkers/wscript') 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) -- cgit v1.2.3