[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25561] Incorrect DWARF info emitted when variable removed due to
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/25561] Incorrect DWARF info emitted when variable removed due to --gc-sections |
Date: |
Tue, 03 Mar 2020 16:54:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25561
--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
Hi Chris,
> Thanks for the info and context Nick, appreciate it! At a high level I figured
> the linker is already updating "DW_AT_location" today when it determines the
> actual address during the placement process so I figured if the symbol didn't
> get placed, the linker could strip the info instead.
It could - but how much info should it strip ? Just the DW_AT_location entry
or other bits of debug info as well ? Plus at the moment the linker does not
really have any code to reformat the contents of a debug section. It can
resolve
relocations that point into debug sections, and it can discard whole sections,
but
it does not really have debug-rewriting capabilities.
> Do you know if there are any tickets already tracking the suggested gcc
> changes
> you mentioned?
Actually no. I thought that there was one (or even two) but I cannot find them
at the moment. They were probably filed a long time ago. It would probably be
worth asking on the gcc mailing list however as there is bound to be someone
there who knows about this issue.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.