[PATCH] PR ld/21529: Use a linker script to limit output with the test case (was: Re: PR21529, internal error in linker.c)

Alan Modra amodra@gmail.com
Thu Jul 13 23:40:00 GMT 2017


On Thu, Jul 13, 2017 at 05:26:23PM +0100, Maciej W. Rozycki wrote:
> I think it is unreasonable and also unnecessary for this test case to have 
> such a large file produced, so can we have a reasonable linker script 
> involved, such as:
> 
> SECTIONS
> {
>   .text : { *(.text) }
>   /DISCARD/ : { *(*) }
> }
> 
> so that we do not trip on individual targets' peculiarities?
> 
>  No regressions in testing and `rx-elf' is now all-pass.  OK for trunk and 
> 2.29?

Thanks for taking the analysis further than I did.  OK with a
ChangeLog entry.  I'm sure this is good for the branch too.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list