[PATCH] powerpc: link error on orphan sections
Michael Ellerman
mpe at ellerman.id.au
Wed Oct 19 22:56:18 AEDT 2016
David Laight <David.Laight at ACULAB.COM> writes:
> 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.
How do you assign them an address without knowing what they are? With a
wild card rule?
Anyway I think I'm happy for this to only work on newer toolchains.
cheers
More information about the Linuxppc-dev
mailing list