This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Add build-id section to existing binaries
- From: Bogdan Harjoc <harjoc at gmail dot com>
- To: gdb at sourceware dot org
- Date: Thu, 31 Mar 2016 13:28:46 +0300
- Subject: Add build-id section to existing binaries
- Authentication-results: sourceware.org; auth=none
I have some rootfs images built with debug symbols and want to strip
the symbols to separate files to fit on a device, but also allow gdb
to load the symbols automatically from a folder that has symbols for
each build-id.
The existing build system doesn't add -Wl,--build-id to gcc commands.
Is there a way to add these build-ids afterwards, the way objcopy
--add-gnu-debuglink works ?
Each built package goes through ./configure && make and I'm trying to
avoid passing the required flags to each configure command.
Thanks,
Bogdan