diff options
author | Carl Love <cel@us.ibm.com> | 2021-12-08 12:37:13 -0600 |
---|---|---|
committer | Carl Love <cel@us.ibm.com> | 2021-12-09 13:01:52 -0600 |
commit | ab7baf103d2fb381361da3257b971a372a449f50 (patch) | |
tree | 52d292c6acd8c08246c3bd60944d77c7e9d81a89 /gdb | |
parent | 6722ee73f78acd2e22166e6fe334a8b9d9a12c38 (diff) | |
download | gdb-ab7baf103d2fb381361da3257b971a372a449f50.zip gdb-ab7baf103d2fb381361da3257b971a372a449f50.tar.gz gdb-ab7baf103d2fb381361da3257b971a372a449f50.tar.bz2 |
gdb fix elfv1 Powerpc gdb.dwarf2/frame-inlined-in-outer-frame.exp
On ELFv1, the _start symbol must point to the *function descriptor* (in
the .opd section), not to the function code (in the .text section) like
with ELFv2 and other architectures.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S index 224b50b..112788a 100644 --- a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S +++ b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S @@ -103,19 +103,24 @@ #if defined __powerpc64__ # if _CALL_ELF == 2 .abiversion 2 /* Tell gdb what ELF version to use. */ +.global _start +_start: # else .abiversion 1 /* Tell gdb what ELF version to use. */ .align 2 +.global _start .section ".opd", "aw" .align 3 +_start: .quad ._start,.TOC.@tocbase,0 .previous .type ._start,@function ._start: # endif -#endif +#else .global _start _start: +#endif .cfi_startproc /* State that the return address for this frame is undefined. */ |