[M68K] Use multiple GOTs by default for m68k-linux

Maxim Kuvyrkov maxim@codesourcery.com
Tue Jul 20 12:29:00 GMT 2010


On 7/20/10 4:19 PM, Andreas Schwab wrote:
> Maxim Kuvyrkov<maxim@codesourcery.com>  writes:
>
>> More than that, latest GLIBC fails to build without multiple GOT
>> support as the number of GOT entries in libc overflows a single GOT.
>
> There are about 9k worth of GOT.  In which way does it overflow?

Well, it doesn't.  I saw a bunch of errors:

(.text+0x12c1e): relocation truncated to fit: R_68K_GOT16 against symbol 
`_GLOBAL_OFFSET_TABLE_' defined in .got.plt section in 
/scratch/maxim/cf-fsf/obj-linux/glibc-mainline-0-m68k-linux-gnu-i686-pc-linux-gnu/default/csu/abi-note.o

and remembered about this default in binutils.  Upon closer inspection I 
noticed that the relocations are R_68K_GOT16, not R_68K_GOT16O, so 
something else should've broken.

Still, I think it's time to enable multiple GOTs by default for m68k-linux.

Thanks,

-- 
Maxim Kuvyrkov
CodeSourcery
maxim@codesourcery.com
(650) 331-3385 x724



More information about the Binutils mailing list