This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Committed; fix PR gas/14521, missing renumber_sections for MMIX. Also, RFC.


On Sat, Sep 01, 2012 at 02:14:21PM -0400, Hans-Peter Nilsson wrote:
> seriously, I'd like this unkludged.  At the very least I suggest
> renumber_sections can be globalized and renamed gas_renumber_sections.
> Would that be ok?  Maybe we can do better, like moving the
> renumber_sections call in write.c to after tc_frob_file_before_fix and
> md_post_relax_hook, assuming valid section numbers aren't needed
> before that for some other target.  It'd have to be a target-specific
> need or else the Xtensa and MMIX kludges will fail for some cases.

Moving the renumber_sections call may affect section symbols.  I'm not
sure, but that is something you'd want to check.

> I also noticed that the .section call doesn't modify the existing
> .text section but instead causes an *extra* .text section, one with
> the AXG flags.  Should that really happen?  (Same for cris-elf and mmix.)

Yes.  Group sections should not be merged with non-group sections (or
with group sections belonging to a different group) even though they
have the same name.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]