[Bug] DWARF-5 section names in PE/PEP and weak symbols

Achim Gratz Stromeko@nexgo.de
Mon Dec 20 19:45:04 GMT 2021


Nick Clifton via Binutils writes:
>   Please could you file a bug report for this problem here:

https://sourceware.org/bugzilla/show_bug.cgi?id=28719

> So you are saying that because the linker script now includes specific
> references to DWARF-5 debug sections, the fputs symbol is being pulled
> in to the link from the cygwin1.dll and hence it is no longer undefined ?
> That seems to be most strange.

It is much more strange: looking at the working and non-working version
(going from 2.36 to 2.37) with objdump, everything but the debug section
(differently named and now at the beginning of the object file instead
of the end), there is absolutely no other difference in the other
sections that I've been able to find.

> Hmm, I suppose that the location lists will refer to real locations in
> the code space, and so including the debug information could also pull
> in the code itself.  But really you would only want to have the debug
> information for code that is already part of the final link.  So maybe
> the underlying problem is that the debug information has not been pruned
> to match discarded code.

I have no idea where and what to look for.

> Quick question - if instead of deleting the references to the .debug_loclists
> section you move them into the /DISCARD/ section earlier in the pe.se file,
> does this also solve the problem.  (The point being that if the script
> explitcitly discards this information we also have room to add a comment
> explaining why.  Plus it will prevent future changes to the pe.sc file
> from adding the section back in).  (Also the change would be needed in
> the pep.sc file as well, obviously.  Plus the .zdebug_loclists section
> would need similar treatment).

How do I do that (and no, I'll not be able to check until the beginning
of next year).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


More information about the Binutils mailing list