reducing number of relocations

Andreas Schwab schwab@linux-m68k.org
Tue Apr 14 22:25:15 GMT 2020


On Apr 15 2020, Bruno Haible wrote:

> $ mips64-linux-gnuabi64-gcc-5 -O2 -c -Wall foo.c -fsection-anchors
> $ mips64-linux-gnuabi64-readelf -r foo.o
>
> shows as many relocations as
>
> $ mips64-linux-gnuabi64-gcc-5 -O2 -c -Wall foo.c
> $ mips64-linux-gnuabi64-readelf -r foo.o

You need to compare fully linked objects.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Binutils mailing list