This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Add SHT_GNU_PHDRS
On 9/27/18 12:26 PM, H.J. Lu wrote:
> [hjl@gnu-cfl-1 ld]$ ../binutils/objcopy ./foo bar
> ../binutils/objcopy: bar: section .gnu.phdrs lma 0x400040 adjusted to 0x401040
What is it doing here? Why is it adjusting the lma? How odd.
> [hjl@gnu-cfl-1 ld]$
>
> I can fix objcopy. Other tools may also need adjustment.
Yes, this just looks like bugs.
* Unknown section types should not be adjusted or touched and minimally passed
through during a copy. We should not adjust them to the next PROGBITS section.
* Backports of the fix to active branches to enable distributions to easily
pickup the fixes.
... and keep moving forward with a proper fix (and consensus around it).
--
Cheers,
Carlos.