Add build-id section to existing binaries
Bogdan Harjoc <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAF4+tmp7nZ-EcUc1z3xxf+wQg3VRPDg4+_hrqfGupyQ2V6tQug@mail.gmail.com> |
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