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: current binutils trunk failures on cygwin


On Tue, May 02, 2006 at 01:16:21PM +0100, Nick Clifton wrote:
> Hi H.J.
> 
> >>>FAIL: copy with seting section flags 2
> >
> >objcopy --set-section-flags .text=alloc,data
> >
> >doesn't work on COFF. Someone needs to fix it or I can make it ELF
> >only.
> 
> It does work with COFF targets (eg alpha-linuxecoff).  The problem is PE 
> based targets where there is code to ensure that certain named sections 
> (eg .text) are given specific section flags.  This is in order to comply 
> with the PE spec, so really this is not a bug, but a feature.
> 
> So I am going to apply the attached patch to resolve this problem by 
> changing the name of the section involved from .text to foo.  Actually 
> it does not resolve the problem for AOUT based targets since they do not 
> support arbitrarily named sections, so the test is just marked as 
> unsupported for them.  But I think that skipping AOUT targets is better 
> than skipping PE targets.
> 

I chose .text on purpose since we didn't say --set-section-flags
doesn't work on certain sections. copy-1.d already has a non-standard
section. I would prefer to add a new test and make copy-2.d ELF only.

H.J.


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