summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2017-06-14 17:08:59 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-21 09:34:50 +0200
commit56b1e28fdbf7873ccfc46fa82cef9734691a31e7 (patch)
tree06caf0a337de44eb85dd668639d70f1722baa29f /platforms
parente6533aa2d924dcd302ff49b5b71d8ac1ea3876e7 (diff)
downloadptxdist-56b1e28fdbf7873ccfc46fa82cef9734691a31e7.tar.gz
ptxdist-56b1e28fdbf7873ccfc46fa82cef9734691a31e7.tar.xz
Debugging: add support for 'build-id's
Recent debugging tools support separate binaries and debug information files. Providing a unique 'build-id' embedded in the binary enables the debugging tools to select the correct and matching debug information files from the system's root filesystem. The 'build-id' is a 40 character calculated SHA1 from important sections in the binary. The debug information files get stored at a central direcory at "/usr/lib/debug/", with a special path based on the 'build-id'. If the 'build-id' is "123456789abcdef", the path and filename will be ".build-id/12/3456789abcdef.debug". Its possible to have more than one 'build-id' in the binary. This implementation prefers the first one in the list, which might be the wrong one. It's unclear yet how the common debugging tools will behave in this case. Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/toolchain_options.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/toolchain_options.in b/platforms/toolchain_options.in
index 5593720b3..fe0ff1558 100644
--- a/platforms/toolchain_options.in
+++ b/platforms/toolchain_options.in
@@ -79,6 +79,10 @@ config TARGET_COMPILER_RECORD_SWITCHES
command line option '-p .GCC.command.line' on any object file or
the corresponding .debug/.<whatever>.dbg file.
+config TARGET_BUILD_ID
+ bool
+ default y
+
config TARGET_EXTRA_CPPFLAGS
string
prompt "Extra CPPFLAGS (cpp)"