[PATCH] powerpc: link error on orphan sections
David Laight
David.Laight at ACULAB.COM
Fri Oct 14 21:54:39 AEDT 2016
From: Michael Ellerman
> Sent: 14 October 2016 01:46
...
> > +LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y) --orphan-handling=error
>
> At least some old(er) toolchains don't support that:
>
> /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld: unrecognized option '--
> orphan-handling=error'
>
> So we'll need an ld-option wrapper around it.
In the past I've caused orphan sections to error by assigning them
to the same address as something that exists.
Works with all linkers, even if the error message isn't as useful.
David
More information about the Linuxppc-dev
mailing list