ld -pie -O1: failed to set dynamic section sizes: Invalid operation

Michael Weiser michael@weiser.dinsnail.net
Sun Jun 18 13:45:00 GMT 2017


Hi Nick,

On Fri, Jun 16, 2017 at 03:17:49PM +0100, Nick Clifton wrote:

> > # ld -o t t.o -v -pie -O1 GNU ld (Gentoo 2.28 p1.1) 2.28 /usr/bin/ld:
> > failed to set dynamic section sizes: Invalid operation
> This was due to a snafu in the linker's code to compute the size of the
> dynamic string and symbol tables.  If there were no symbols that needed
> to be in these tables, the code was failing rather than reporting no error.

> I have checked in a small patch to fix the problem.  Please try the mainline
> linker sources to see it the issue is now fixed for you.

I applied your patch to Gentoo's binutils-2.28-r1 package and the
problem is gone: glibc builds fine again.
-- 
Thank you!
Michael



More information about the Binutils mailing list