Hi Segher,

On 2 February 2015 at 01:16, Segher Boessenkool
<seg...@kernel.crashing.org> wrote:
> On Sat, Jan 31, 2015 at 05:09:29PM -0700, Simon Glass wrote:
>> I have been fighting with a strange problem on ARM where gcc puts all
>> the .rodata from a number of files lumped into a single .rodata
>> section even when -fdata-sections is used.
>>
>> I searched and found a bug report here:
>>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303
>>
>> which exactly describes the problem I see.
>
> You could try this patch. I think there were still some problems with
> it, there must have been some reason I didn't submit it. Cannot have
> been just laziness :-P

I tried this patch and it solved my problem - the rodata section is
now split up and most of it is discarded in the link phase.

I hope some form of this can make it into gcc one day soon and a
suitable regression test case can be added!

Thanks,
Simon

[snip]

Reply via email to