[PATCH] powerpc: link error on orphan sections
David Laight
David.Laight at ACULAB.COM
Wed Oct 19 23:36:09 AEDT 2016
From: Michael Ellerman [mailto:mpe at ellerman.id.au]
> > 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.
>
> How do you assign them an address without knowing what they are? With a
> wild card rule?
Right at the end of the ldscript I have:
/* Anything from any unexpected section ends up here and
* generates an error because this overlaps another section */
unwanted _gp : { *(*) }
}
David
More information about the Linuxppc-dev
mailing list