2002-09-30 05:25:20 +00:00
|
|
|
# Expect script for ld-powerpc tests
|
2009-03-04 05:50:50 +00:00
|
|
|
# Copyright 2002, 2003, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
|
2002-09-30 05:25:20 +00:00
|
|
|
#
|
2007-07-06 14:09:45 +00:00
|
|
|
# This file is part of the GNU Binutils.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
2002-09-30 05:25:20 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-07-06 14:09:45 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2002-09-30 05:25:20 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2007-07-06 14:09:45 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
# MA 02110-1301, USA.
|
2002-09-30 05:25:20 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
if { ![istarget "powerpc*-*-*"] } {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
bfd/
* elf32-ppc.c (ppc_elf_plt_type): New enumeration.
(ppc_elf_link_hash_table): Replace old_got and new_got with
plt_type and can_use_new_plt.
(ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
(ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
(ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
this function should not be called for VxWorks targets.
(ppc_elf_tls_setup): Use plt_type instead of old_got.
(allocate_got): Likewise. Rearrange so that max_before_header
is only used for PLT_OLD and PLT_NEW.
(allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
(ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.
(ppc_elf_finish_dynamic_symbol): Likewise.
(ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
ld/
* emulparams/elf32ppccommon.sh: New file, extracted from...
* emulparams/elf32ppc.sh: ...here.
* emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
instead of elf32ppc.sh.
(BSS_PLT): Remove override.
* Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
(eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
(eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
(eelf32ppclinux.c): Likewise.
(eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-powerpc/vxworks1-lib.s, ld-powerpc/vxworks1-lib.dd,
* ld-powerpc/vxworks1-lib.rd, ld-powerpc/vxworks1.s,
* ld-powerpc/vxworks1.dd, ld-powerpc/vxworks1.rd,
* ld-powerpc/vxworks1.ld, ld-powerpc/vxworks1.sd: New test.
* ld-powerpc/powerpc.exp: Run it.
2006-03-02 08:50:04 +00:00
|
|
|
if {[istarget "*-*-vxworks"]} {
|
|
|
|
set ppcvxtests {
|
|
|
|
{"VxWorks shared library test 1 (default script)" "-shared"
|
|
|
|
"-mregnames" {vxworks1-lib.s}
|
|
|
|
{{readelf --segments vxworks1-lib.sd}}
|
|
|
|
"libvxworks1.so"}
|
|
|
|
{"VxWorks shared library test 1" "-shared -Tvxworks1.ld"
|
|
|
|
"-mregnames" {vxworks1-lib.s}
|
2006-03-02 08:57:00 +00:00
|
|
|
{{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
|
2007-05-15 12:22:34 +00:00
|
|
|
{readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
|
bfd/
* elf32-ppc.c (ppc_elf_plt_type): New enumeration.
(ppc_elf_link_hash_table): Replace old_got and new_got with
plt_type and can_use_new_plt.
(ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
(ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
(ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
this function should not be called for VxWorks targets.
(ppc_elf_tls_setup): Use plt_type instead of old_got.
(allocate_got): Likewise. Rearrange so that max_before_header
is only used for PLT_OLD and PLT_NEW.
(allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
(ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.
(ppc_elf_finish_dynamic_symbol): Likewise.
(ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
ld/
* emulparams/elf32ppccommon.sh: New file, extracted from...
* emulparams/elf32ppc.sh: ...here.
* emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
instead of elf32ppc.sh.
(BSS_PLT): Remove override.
* Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
(eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
(eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
(eelf32ppclinux.c): Likewise.
(eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-powerpc/vxworks1-lib.s, ld-powerpc/vxworks1-lib.dd,
* ld-powerpc/vxworks1-lib.rd, ld-powerpc/vxworks1.s,
* ld-powerpc/vxworks1.dd, ld-powerpc/vxworks1.rd,
* ld-powerpc/vxworks1.ld, ld-powerpc/vxworks1.sd: New test.
* ld-powerpc/powerpc.exp: Run it.
2006-03-02 08:50:04 +00:00
|
|
|
"libvxworks1.so"}
|
2006-03-03 09:32:01 +00:00
|
|
|
{"VxWorks executable test 1 (dynamic)" \
|
|
|
|
"tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic"
|
|
|
|
"-mregnames" {vxworks1.s}
|
bfd/
* elf32-ppc.c (ppc_elf_plt_type): New enumeration.
(ppc_elf_link_hash_table): Replace old_got and new_got with
plt_type and can_use_new_plt.
(ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
(ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
(ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
this function should not be called for VxWorks targets.
(ppc_elf_tls_setup): Use plt_type instead of old_got.
(allocate_got): Likewise. Rearrange so that max_before_header
is only used for PLT_OLD and PLT_NEW.
(allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
(ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.
(ppc_elf_finish_dynamic_symbol): Likewise.
(ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
ld/
* emulparams/elf32ppccommon.sh: New file, extracted from...
* emulparams/elf32ppc.sh: ...here.
* emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
instead of elf32ppc.sh.
(BSS_PLT): Remove override.
* Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
(eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
(eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
(eelf32ppclinux.c): Likewise.
(eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-powerpc/vxworks1-lib.s, ld-powerpc/vxworks1-lib.dd,
* ld-powerpc/vxworks1-lib.rd, ld-powerpc/vxworks1.s,
* ld-powerpc/vxworks1.dd, ld-powerpc/vxworks1.rd,
* ld-powerpc/vxworks1.ld, ld-powerpc/vxworks1.sd: New test.
* ld-powerpc/powerpc.exp: Run it.
2006-03-02 08:50:04 +00:00
|
|
|
{{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}}
|
|
|
|
"vxworks1"}
|
2006-03-03 09:32:01 +00:00
|
|
|
{"VxWorks executable test 2 (dynamic)" \
|
|
|
|
"-Tvxworks1.ld -q --force-dynamic"
|
|
|
|
"-mregnames" {vxworks2.s}
|
|
|
|
{{readelf --segments vxworks2.sd}}
|
|
|
|
"vxworks2"}
|
|
|
|
{"VxWorks executable test 2 (static)"
|
|
|
|
"-Tvxworks1.ld"
|
|
|
|
"-mregnames" {vxworks2.s}
|
|
|
|
{{readelf --segments vxworks2-static.sd}}
|
|
|
|
"vxworks2"}
|
2009-01-26 15:27:04 +00:00
|
|
|
{"VxWorks relax test"
|
|
|
|
"-Tvxworks1.ld --relax -q"
|
|
|
|
"-mregnames" {vxworks-relax.s}
|
|
|
|
{{readelf --relocs vxworks-relax.rd}}
|
|
|
|
"vxworks-relax"}
|
2009-05-27 13:31:24 +00:00
|
|
|
{"VxWorks relocatable relax test"
|
|
|
|
"-Tvxworks1.ld -r --relax -q"
|
|
|
|
"-mregnames" {vxworks-relax-2.s}
|
|
|
|
{{readelf --relocs vxworks-relax-2.rd}}
|
|
|
|
"vxworks-relax-2"}
|
bfd/
* elf32-ppc.c (ppc_elf_plt_type): New enumeration.
(ppc_elf_link_hash_table): Replace old_got and new_got with
plt_type and can_use_new_plt.
(ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
(ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
(ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
this function should not be called for VxWorks targets.
(ppc_elf_tls_setup): Use plt_type instead of old_got.
(allocate_got): Likewise. Rearrange so that max_before_header
is only used for PLT_OLD and PLT_NEW.
(allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
(ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.
(ppc_elf_finish_dynamic_symbol): Likewise.
(ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
ld/
* emulparams/elf32ppccommon.sh: New file, extracted from...
* emulparams/elf32ppc.sh: ...here.
* emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
instead of elf32ppc.sh.
(BSS_PLT): Remove override.
* Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
(eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
(eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
(eelf32ppclinux.c): Likewise.
(eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-powerpc/vxworks1-lib.s, ld-powerpc/vxworks1-lib.dd,
* ld-powerpc/vxworks1-lib.rd, ld-powerpc/vxworks1.s,
* ld-powerpc/vxworks1.dd, ld-powerpc/vxworks1.rd,
* ld-powerpc/vxworks1.ld, ld-powerpc/vxworks1.sd: New test.
* ld-powerpc/powerpc.exp: Run it.
2006-03-02 08:50:04 +00:00
|
|
|
}
|
|
|
|
run_ld_link_tests $ppcvxtests
|
2006-03-03 09:32:01 +00:00
|
|
|
run_dump_test "vxworks1-static"
|
bfd/
* elf32-ppc.c (ppc_elf_plt_type): New enumeration.
(ppc_elf_link_hash_table): Replace old_got and new_got with
plt_type and can_use_new_plt.
(ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
(ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
(ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
this function should not be called for VxWorks targets.
(ppc_elf_tls_setup): Use plt_type instead of old_got.
(allocate_got): Likewise. Rearrange so that max_before_header
is only used for PLT_OLD and PLT_NEW.
(allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
(ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.
(ppc_elf_finish_dynamic_symbol): Likewise.
(ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
ld/
* emulparams/elf32ppccommon.sh: New file, extracted from...
* emulparams/elf32ppc.sh: ...here.
* emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
instead of elf32ppc.sh.
(BSS_PLT): Remove override.
* Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
(eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
(eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
(eelf32ppclinux.c): Likewise.
(eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
* Makefile.in: Regenerate.
ld/testsuite/
* ld-powerpc/vxworks1-lib.s, ld-powerpc/vxworks1-lib.dd,
* ld-powerpc/vxworks1-lib.rd, ld-powerpc/vxworks1.s,
* ld-powerpc/vxworks1.dd, ld-powerpc/vxworks1.rd,
* ld-powerpc/vxworks1.ld, ld-powerpc/vxworks1.sd: New test.
* ld-powerpc/powerpc.exp: Run it.
2006-03-02 08:50:04 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2007-07-05 01:03:26 +00:00
|
|
|
# powerpc ELF only at the moment. Disable for nto too, even though it
|
|
|
|
# is ELF, because we pass -melf32ppc to ld and powerpc-nto-ld wants
|
|
|
|
# -melf32ppcnto.
|
2002-09-30 05:25:20 +00:00
|
|
|
|
|
|
|
if { [istarget "*-*-macos*"] || [istarget "*-*-netware*"]
|
|
|
|
|| [istarget "*-*-pe"] || [istarget "*-*-winnt*"]
|
|
|
|
|| [istarget "*-*-cygwin*"] || [istarget "*-*-aix*"]
|
2007-07-05 01:03:26 +00:00
|
|
|
|| [istarget "*-*-beos*"] || [istarget "*-*-lynxos*"]
|
|
|
|
|| [istarget "*-*-nto*"] } {
|
2002-09-30 05:25:20 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2003-02-04 14:52:11 +00:00
|
|
|
proc supports_ppc64 { } {
|
|
|
|
global ld
|
|
|
|
|
|
|
|
catch "exec $ld --help | grep emulations" tmp
|
|
|
|
if [ string match "*elf64ppc*" $tmp ] then {
|
|
|
|
return 1
|
|
|
|
} else {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-09-30 05:25:20 +00:00
|
|
|
# List contains test-items with 3 items followed by 2 lists:
|
|
|
|
# 0:name 1:ld options 2:assembler options
|
|
|
|
# 3:filenames of assembler files 4: action and options. 5: name of output file
|
|
|
|
|
|
|
|
# Actions:
|
|
|
|
# objdump: Apply objdump options on result. Compare with regex (last arg).
|
|
|
|
# nm: Apply nm options on result. Compare with regex (last arg).
|
|
|
|
# readelf: Apply readelf options on result. Compare with regex (last arg).
|
|
|
|
|
|
|
|
set ppcelftests {
|
2003-02-04 14:52:11 +00:00
|
|
|
{"Reloc section order" "-melf32ppc -shared -z nocombreloc" "-a32" {reloc.s}
|
2002-09-30 05:25:20 +00:00
|
|
|
{{objdump -hw reloc.d}} "reloc.so"}
|
2003-02-04 14:52:11 +00:00
|
|
|
{"APUinfo section processing" "-melf32ppc"
|
|
|
|
"-a32 -me500" {apuinfo1.s apuinfo2.s}
|
2005-03-16 21:52:48 +00:00
|
|
|
{{readelf -x2 apuinfo.rd}} "apuinfo"}
|
2003-02-18 06:11:32 +00:00
|
|
|
{"TLS32 static exec" "-melf32ppc" "-a32" {tls32.s tlslib32.s}
|
|
|
|
{{objdump -dr tls32.d} {objdump -sj.got tls32.g}
|
|
|
|
{objdump -sj.tdata tls32.t}}
|
|
|
|
"tls32"}
|
|
|
|
{"TLS32 helper shared library" "-shared -melf32ppc tmpdir/tlslib32.o" "" {}
|
|
|
|
{} "libtlslib32.so"}
|
|
|
|
{"TLS32 dynamic exec" "-melf32ppc tmpdir/tls32.o tmpdir/libtlslib32.so" "" {}
|
|
|
|
{{readelf -WSsrl tlsexe32.r} {objdump -dr tlsexe32.d}
|
|
|
|
{objdump -sj.got tlsexe32.g} {objdump -sj.tdata tlsexe32.t}}
|
|
|
|
"tlsexe32"}
|
|
|
|
{"TLS32 shared" "-shared -melf32ppc tmpdir/tls32.o" "" {}
|
|
|
|
{{readelf -WSsrl tlsso32.r} {objdump -dr tlsso32.d}
|
|
|
|
{objdump -sj.got tlsso32.g} {objdump -sj.tdata tlsso32.t}}
|
|
|
|
"tls32.so"}
|
2009-03-04 05:50:50 +00:00
|
|
|
{"TLS32 markers" "-melf32ppc" "-a32" {tlsmark32.s tlslib32.s}
|
|
|
|
{{objdump -dr tlsmark32.d}}
|
|
|
|
"tlsmark32"}
|
2005-06-02 14:30:03 +00:00
|
|
|
{"Shared library with global symbol" "-shared -melf32ppc" "-a32" {sdalib.s}
|
2005-05-20 21:57:12 +00:00
|
|
|
{} "sdalib.so"}
|
2005-06-02 14:30:03 +00:00
|
|
|
{"Dynamic application with SDA" "-melf32ppc tmpdir/sdalib.so" "-a32" {sdadyn.s}
|
2005-05-20 21:57:12 +00:00
|
|
|
{{objdump -R sdadyn.d}} "sdadyn"}
|
2002-09-30 05:25:20 +00:00
|
|
|
}
|
|
|
|
|
2003-02-04 14:52:11 +00:00
|
|
|
set ppc64elftests {
|
|
|
|
{"TLS static exec" "-melf64ppc" "-a64" {tls.s tlslib.s}
|
|
|
|
{{objdump -dr tls.d} {objdump -sj.got tls.g} {objdump -sj.tdata tls.t}}
|
|
|
|
"tls"}
|
|
|
|
{"TLS helper shared library" "-shared -melf64ppc tmpdir/tlslib.o" "" {}
|
|
|
|
{} "libtlslib.so"}
|
|
|
|
{"TLS dynamic exec" "-melf64ppc tmpdir/tls.o tmpdir/libtlslib.so" "" {}
|
|
|
|
{{readelf -WSsrl tlsexe.r} {objdump -dr tlsexe.d}
|
|
|
|
{objdump -sj.got tlsexe.g} {objdump -sj.tdata tlsexe.t}}
|
|
|
|
"tlsexe"}
|
|
|
|
{"TLS shared" "-shared -melf64ppc tmpdir/tls.o" "" {}
|
|
|
|
{{readelf -WSsrl tlsso.r} {objdump -dr tlsso.d}
|
|
|
|
{objdump -sj.got tlsso.g} {objdump -sj.tdata tlsso.t}}
|
|
|
|
"tls.so"}
|
|
|
|
{"TLSTOC static exec" "-melf64ppc tmpdir/tlslib.o " "-a64" {tlstoc.s}
|
2003-07-10 00:38:42 +00:00
|
|
|
{{objdump -dr tlstoc.d} {objdump -sj.got tlstoc.g}
|
2003-02-04 14:52:11 +00:00
|
|
|
{objdump -sj.tdata tlstoc.t}}
|
|
|
|
"tlstoc"}
|
|
|
|
{"TLSTOC dynamic exec" "-melf64ppc tmpdir/tlstoc.o tmpdir/libtlslib.so"
|
|
|
|
"" {}
|
|
|
|
{{readelf -WSsrl tlsexetoc.r} {objdump -dr tlsexetoc.d}
|
2003-07-10 00:38:42 +00:00
|
|
|
{objdump -sj.got tlsexetoc.g} {objdump -sj.tdata tlsexetoc.t}}
|
2003-02-04 14:52:11 +00:00
|
|
|
"tlsexetoc"}
|
|
|
|
{"TLSTOC shared" "-shared -melf64ppc tmpdir/tlstoc.o" "" {}
|
|
|
|
{{readelf -WSsrl tlstocso.r} {objdump -dr tlstocso.d}
|
2003-07-10 00:38:42 +00:00
|
|
|
{objdump -sj.got tlstocso.g} {objdump -sj.tdata tlstocso.t}}
|
2003-02-04 14:52:11 +00:00
|
|
|
"tlstoc.so"}
|
2009-03-04 05:50:50 +00:00
|
|
|
{"TLS markers" "-melf64ppc" "-a64" {tlsmark.s tlslib.s}
|
|
|
|
{{objdump -dr tlsmark.d}}
|
|
|
|
"tlsmark"}
|
2005-09-28 19:32:19 +00:00
|
|
|
{"sym@tocbase" "-shared -melf64ppc" "-a64" {symtocbase-1.s symtocbase-2.s}
|
|
|
|
{{objdump -dj.data symtocbase.d}} "symtocbase.so"}
|
2009-08-10 13:38:44 +00:00
|
|
|
{"relaxing" "-melf32ppc --relax -Ttext=0 --defsym far=0x80001234 --defsym near=0x00004320" "" "relax.s"
|
|
|
|
{{objdump -dr relax.d}}
|
|
|
|
"relax"}
|
|
|
|
{"relocatable relaxing" "-melf32ppc -r --relax" "" "relax.s"
|
|
|
|
{{objdump -dr relaxr.d}}
|
|
|
|
"relax"}
|
2003-02-04 14:52:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-09-30 05:25:20 +00:00
|
|
|
run_ld_link_tests $ppcelftests
|
2003-02-04 14:52:11 +00:00
|
|
|
|
|
|
|
if [ supports_ppc64 ] then {
|
|
|
|
run_ld_link_tests $ppc64elftests
|
2006-10-24 13:29:37 +00:00
|
|
|
run_dump_test "relbrlt"
|
2003-02-04 14:52:11 +00:00
|
|
|
}
|
2006-10-24 13:29:37 +00:00
|
|
|
|
|
|
|
run_dump_test "plt1"
|
bfd:
* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
(ppc_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_power_gnu_attribute, process_power_specific):
New.
(process_arch_specific): Call process_power_specific.
include/elf:
* ppc.h (Tag_GNU_Power_ABI_FP): Define.
ld/testsuite:
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d,
ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d,
ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d,
ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s,
ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d,
ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s,
ld-powerpc/attr-gnu-4-31.d: New.
* ld-powerpc/powerpc.exp: Run these new tests.
2007-06-30 00:03:40 +00:00
|
|
|
|
|
|
|
run_dump_test "attr-gnu-4-00"
|
|
|
|
run_dump_test "attr-gnu-4-01"
|
|
|
|
run_dump_test "attr-gnu-4-02"
|
2008-07-26 13:10:48 +00:00
|
|
|
run_dump_test "attr-gnu-4-03"
|
bfd:
* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
(ppc_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_power_gnu_attribute, process_power_specific):
New.
(process_arch_specific): Call process_power_specific.
include/elf:
* ppc.h (Tag_GNU_Power_ABI_FP): Define.
ld/testsuite:
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d,
ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d,
ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d,
ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s,
ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d,
ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s,
ld-powerpc/attr-gnu-4-31.d: New.
* ld-powerpc/powerpc.exp: Run these new tests.
2007-06-30 00:03:40 +00:00
|
|
|
run_dump_test "attr-gnu-4-10"
|
|
|
|
run_dump_test "attr-gnu-4-11"
|
|
|
|
run_dump_test "attr-gnu-4-12"
|
|
|
|
run_dump_test "attr-gnu-4-13"
|
2008-07-26 13:10:48 +00:00
|
|
|
run_dump_test "attr-gnu-4-14"
|
bfd:
* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
(ppc_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_power_gnu_attribute, process_power_specific):
New.
(process_arch_specific): Call process_power_specific.
include/elf:
* ppc.h (Tag_GNU_Power_ABI_FP): Define.
ld/testsuite:
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d,
ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d,
ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d,
ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s,
ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d,
ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s,
ld-powerpc/attr-gnu-4-31.d: New.
* ld-powerpc/powerpc.exp: Run these new tests.
2007-06-30 00:03:40 +00:00
|
|
|
run_dump_test "attr-gnu-4-20"
|
|
|
|
run_dump_test "attr-gnu-4-21"
|
|
|
|
run_dump_test "attr-gnu-4-22"
|
2008-07-26 13:10:48 +00:00
|
|
|
run_dump_test "attr-gnu-4-23"
|
|
|
|
run_dump_test "attr-gnu-4-24"
|
bfd:
* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
(ppc_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_power_gnu_attribute, process_power_specific):
New.
(process_arch_specific): Call process_power_specific.
include/elf:
* ppc.h (Tag_GNU_Power_ABI_FP): Define.
ld/testsuite:
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d,
ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d,
ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d,
ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s,
ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d,
ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s,
ld-powerpc/attr-gnu-4-31.d: New.
* ld-powerpc/powerpc.exp: Run these new tests.
2007-06-30 00:03:40 +00:00
|
|
|
run_dump_test "attr-gnu-4-31"
|
2008-07-26 13:10:48 +00:00
|
|
|
run_dump_test "attr-gnu-4-32"
|
|
|
|
run_dump_test "attr-gnu-4-33"
|
|
|
|
run_dump_test "attr-gnu-4-34"
|
|
|
|
run_dump_test "attr-gnu-4-41"
|
2007-10-25 15:20:24 +00:00
|
|
|
|
|
|
|
run_dump_test "attr-gnu-8-11"
|
|
|
|
run_dump_test "attr-gnu-8-23"
|
|
|
|
run_dump_test "attr-gnu-8-31"
|
2008-10-10 20:55:36 +00:00
|
|
|
|
|
|
|
run_dump_test "attr-gnu-12-11"
|
|
|
|
run_dump_test "attr-gnu-12-21"
|