[PATCH v4 3/3] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

David Laight David.Laight at ACULAB.COM
Fri Jan 20 04:01:05 AEDT 2017


From:  Ard Biesheuvel
> Sent: 18 January 2017 13:53
..
> It turns out that this odd treatment of absolute symbols (i.e.,
> symbols having section number SHN_ABS) is a known issue in GNU ld
> 
> https://sourceware.org/ml/binutils/2012-05/msg00019.html
...

Jeepers - that is truly f*cked.

I've even used the linker script to generate absolute symbols for the
sizes of items - they really don't want relocating (ever).

If you go back to (say) RSX11/M loads of the constants (like system
call numbers and structure offsets) would be supplied by the linker
if the assembler didn't know the value.
That linker supported (more or less) arbitrary expressions in fixups.

	David



More information about the Linuxppc-dev mailing list