current binutils trunk failures on cygwin
Nick Clifton
nickc@redhat.com
Tue May 2 12:16:00 GMT 2006
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.
Cheers
Nick
binutils/testsuite/ChangeLog
2006-05-02 Nick Clifton <nickc@redhat.com>
* binutils-all/copy-2.d: Change the name of the section whose
flags are changed to "foo" so that the test will work with PE
based targets. Skip this test for AOUT based targeted.
* binutils-all/copytest.s: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy-2.d.patch
Type: text/x-patch
Size: 1482 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060502/9d079f2a/attachment.bin>
More information about the Binutils
mailing list