This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fwd: ALIGNOF fails on cygwin
Alan Modra wrote:
Actually, I think you should only be running the test for ELF
targets. AOUT and COFF don't support alignment of sections, except by
way of various extensions such as PE.
like this?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2007-07-02 Nathan Sidwell <nathan@codesourcery.com>
* ld-scripts/alignof.exp: Skip on non-elf
Index: ld-scripts/alignof.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/alignof.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 alignof.exp
*** ld-scripts/alignof.exp 18 Jun 2007 12:38:22 -0000 1.1
--- ld-scripts/alignof.exp 2 Jul 2007 12:05:09 -0000
***************
*** 15,20 ****
--- 15,26 ----
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ # Only ELF targets record section alignment.
+
+ if ![is_elf_format] {
+ return
+ }
+
set testname "ALIGNOF"
if ![ld_assemble $as $srcdir/$subdir/alignof.s tmpdir/alignof.o] {