From: Alan Modra Date: Mon, 27 Aug 2001 10:49:55 +0000 (+0000) Subject: * ld-checks/checks.exp: .lcomm is incompatible with ppc coff. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad9f78d1a8c02d38a9120c60e281d8f14185f007;p=binutils-gdb.git * ld-checks/checks.exp: .lcomm is incompatible with ppc coff. * ld-scripts/cross1.t: Add .toc section. * ld-scripts/cross2.t: Likewise. * ld-scripts/phdrs.exp: powerpc64 is 64 bit. * ld-srec/srec.exp: xfail powerpc64 --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 39ae59eb139..a84e63640ba 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2001-08-27 Alan Modra + Linus Nordberg + + * ld-checks/checks.exp: .lcomm is incompatible with ppc coff. + * ld-scripts/cross1.t: Add .toc section. + * ld-scripts/cross2.t: Likewise. + * ld-scripts/phdrs.exp: powerpc64 is 64 bit. + * ld-srec/srec.exp: xfail powerpc64 + 2001-08-21 John David Anglin * ld-selective/selective.exp: Return if target is `vax-*-ultrix*'. diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/checks.exp index 9e60a73e4e4..f9478dff951 100644 --- a/ld/testsuite/ld-checks/checks.exp +++ b/ld/testsuite/ld-checks/checks.exp @@ -24,9 +24,10 @@ proc section_check {} { global srcdir global subdir - # The usage of .lcomm in asm.s is incompatible with ia64. - if { [istarget ia64-*-elf*] - || [istarget ia64-*-linux*] } { + # The usage of .lcomm in asm.s is incompatible with ia64 and ppc coff. + if { [istarget ia64-*-elf*] || [istarget ia64-*-linux*] + || [istarget powerpc*-*-aix*] || [istarget powerpc-*-beos*] + || [istarget rs6000-*-*] } { return } set test "check sections 1" diff --git a/ld/testsuite/ld-scripts/cross1.t b/ld/testsuite/ld-scripts/cross1.t index e1948c9e09f..7636b787496 100644 --- a/ld/testsuite/ld-scripts/cross1.t +++ b/ld/testsuite/ld-scripts/cross1.t @@ -1,6 +1,7 @@ NOCROSSREFS ( .text .data ) SECTIONS { + .toc : { *(.toc) } .text : { tmpdir/cross1.o } .data : { tmpdir/cross2.o } } diff --git a/ld/testsuite/ld-scripts/cross2.t b/ld/testsuite/ld-scripts/cross2.t index 4dd7ddd88d4..a0cdcbb6acc 100644 --- a/ld/testsuite/ld-scripts/cross2.t +++ b/ld/testsuite/ld-scripts/cross2.t @@ -2,5 +2,5 @@ NOCROSSREFS ( .text .data ) SECTIONS { .text : { *(.text) *(.text.*) *(.pr) } - .data : { *(.data) *(.data.*) *(.sdata) *(.rw) *(.tc0) *(.tc) } + .data : { *(.data) *(.data.*) *(.sdata) *(.rw) *(.tc0) *(.tc) *(.toc) } } diff --git a/ld/testsuite/ld-scripts/phdrs.exp b/ld/testsuite/ld-scripts/phdrs.exp index 1a512a8c6d4..4c142c636c5 100644 --- a/ld/testsuite/ld-scripts/phdrs.exp +++ b/ld/testsuite/ld-scripts/phdrs.exp @@ -49,7 +49,8 @@ set phdrs_regexp \ # On a 64 bit ELF format, we need different numbers. if { [istarget alpha*-*-*] || [istarget "ia64*-*-*"] || [istarget "hppa*64*-*-*"] || [istarget "x86_64*-*-*"] - || [istarget "s390x*-*-*"] || [istarget "sparc64*-*-*"]} then { + || [istarget "s390x*-*-*"] || [istarget "sparc64*-*-*"] + || [istarget "powerpc64*-*-*"] || [istarget "*-*-*elf64*"] } then { set phdrs_regexp \ ".*Program Header:.*PHDR *off *0x00*40 *vaddr *0x00*800040 *paddr *0x00*800040.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* flags r--.*LOAD *off *0x00* *vaddr *0x00*800000 *paddr *0x00*800000.*filesz *0x00*\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags r-x.*LOAD *off *0x0\[0-9a-f\]* *vaddr *0x00*80*\[0-9a-f\]* *paddr *0x00*80*\[0-9a-f\]*.*filesz *0x0\[0-9a-f\]* *memsz *0x0\[0-9a-f\]* *flags *rw-.*" } diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp index 5878199e671..7496dcd6a15 100644 --- a/ld/testsuite/ld-srec/srec.exp +++ b/ld/testsuite/ld-srec/srec.exp @@ -282,6 +282,9 @@ proc run_srec_test { test objs } { if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \ || ![ld_simple_link $ld tmpdir/sr2.sr "$flags --oformat srec $objs"] } { + # PowerPc64 srec linker can't handle .toc relocations. + setup_xfail "powerpc64*-*-*" + setup_xfail "powerpc*-*-*64*" setup_xfail "hppa*-*-*elf*" fail $test return