This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add build-id section to existing binaries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]