[PATCH 2/2] gas: Anchor DWARF subprograms to the definitions
Jan Beulich
jbeulich@suse.com
Fri Nov 27 09:54:13 GMT 2026
On 24.11.2026 12:51, Longjun Luo wrote:
> When GAS generates a DWARF subprogram, it uses the function symbol for
> address reference. For mechanisms like weak/strong and COMDAT,
> a function may lose its original symbol after link. In these
> situations, the DIE may refer to the wrong address.
Hmm, isn't this something the linker ought to sort?
Jan
More information about the Binutils
mailing list