mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
Hack crossref tests for powerpc64
A different set of hacks to make the crossref tests pass on powerpc64 and powerpc64le. * testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack. * testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement. * testsuite/ld-scripts/cross3.t: Likewise. * testsuite/ld-scripts/cross4.t: Likewise. * testsuite/ld-scripts/cross5.t: Likewise. * testsuite/ld-scripts/cross6.t: Likewise. * testsuite/ld-scripts/cross7.t: Likewise.
This commit is contained in:
10
ld/ChangeLog
10
ld/ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2016-05-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
|
||||||
|
* testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
|
||||||
|
* testsuite/ld-scripts/cross3.t: Likewise.
|
||||||
|
* testsuite/ld-scripts/cross4.t: Likewise.
|
||||||
|
* testsuite/ld-scripts/cross5.t: Likewise.
|
||||||
|
* testsuite/ld-scripts/cross6.t: Likewise.
|
||||||
|
* testsuite/ld-scripts/cross7.t: Likewise.
|
||||||
|
|
||||||
2016-05-19 Alan Modra <amodra@gmail.com>
|
2016-05-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
|
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
NOCROSSREFS ( .text .data )
|
NOCROSSREFS ( .text .data )
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text : { *(.text) *(.text.*) *(.pr) }
|
.text : { *(.text) *(.text.*) *(.pr) *(.opd) }
|
||||||
.data : { *(.data) *(.data.*) *(.sdata) *(.rw) *(.tc0) *(.tc) *(.toc) }
|
.data : { *(.data) *(.data.*) *(.sdata) *(.rw) *(.tc0) *(.tc) *(.toc) }
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
.text : { *(.text) *(.text.*) }
|
.text : { *(.text) *(.text.*) }
|
||||||
.nocrossrefs : { *(.nocrossrefs) }
|
.nocrossrefs : { *(.nocrossrefs) }
|
||||||
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
|
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) *(.toc) }
|
||||||
.bss : { *(.bss) *(COMMON) }
|
.bss : { *(.bss) *(COMMON) }
|
||||||
/DISCARD/ : { *(*) }
|
/DISCARD/ : { *(*) }
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,9 @@ NOCROSSREFS_TO(.data .nocrossrefs)
|
|||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text : { *(.text) *(.text.*) }
|
.text : { *(.text) *(.text.*) *(.opd) }
|
||||||
.nocrossrefs : { *(.nocrossrefs) }
|
.nocrossrefs : { *(.nocrossrefs) }
|
||||||
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
|
.data : { *(.data) *(.data.*) *(.sdata) *(.toc) }
|
||||||
.bss : { *(.bss) *(COMMON) }
|
.bss : { *(.bss) *(COMMON) }
|
||||||
/DISCARD/ : { *(*) }
|
/DISCARD/ : { *(*) }
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
.text : { *(.text) *(.text.*) }
|
.text : { *(.text) *(.text.*) }
|
||||||
.nocrossrefs : { *(.nocrossrefs) }
|
.nocrossrefs : { *(.nocrossrefs) }
|
||||||
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
|
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) *(.toc) }
|
||||||
.bss : { *(.bss) *(COMMON) }
|
.bss : { *(.bss) *(COMMON) }
|
||||||
/DISCARD/ : { *(*) }
|
/DISCARD/ : { *(*) }
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,8 @@ NOCROSSREFS_TO(.text .data)
|
|||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text : { *(.text) *(.text.*) }
|
.text : { *(.text) *(.text.*) *(.opd) }
|
||||||
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
|
.data : { *(.data) *(.data.*) *(.sdata) *(.toc) }
|
||||||
.bss : { *(.bss) *(COMMON) }
|
.bss : { *(.bss) *(COMMON) }
|
||||||
/DISCARD/ : { *(*) }
|
/DISCARD/ : { *(*) }
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,8 @@ NOCROSSREFS_TO(.data .text)
|
|||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text : { *(.text) *(.text.*) }
|
.text : { *(.text) *(.text.*) *(.opd) }
|
||||||
.data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
|
.data : { *(.data) *(.data.*) *(.sdata) *(.toc) }
|
||||||
.bss : { *(.bss) *(COMMON) }
|
.bss : { *(.bss) *(COMMON) }
|
||||||
/DISCARD/ : { *(*) }
|
/DISCARD/ : { *(*) }
|
||||||
}
|
}
|
||||||
|
@ -52,13 +52,6 @@ if [istarget xtensa*-*-*] {
|
|||||||
set CFLAGS "$CFLAGS -mtext-section-literals"
|
set CFLAGS "$CFLAGS -mtext-section-literals"
|
||||||
}
|
}
|
||||||
|
|
||||||
# If we have a compiler that doesn't use/reference dot-symbols, then
|
|
||||||
# calls to functions reference the .opd section function descriptor.
|
|
||||||
# This makes NOCROSSREFS rather useless on powerpc64.
|
|
||||||
if [istarget powerpc64-*-*] {
|
|
||||||
set CFLAGS "$CFLAGS -mcall-aixdesc"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Prevent the use of the MeP's small data area which references a symbol
|
# Prevent the use of the MeP's small data area which references a symbol
|
||||||
# called __sdabase which will not be defined by our test linker scripts.
|
# called __sdabase which will not be defined by our test linker scripts.
|
||||||
if [istarget mep*-*-elf] {
|
if [istarget mep*-*-elf] {
|
||||||
|
Reference in New Issue
Block a user