mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
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.
This commit is contained in:
@ -103,19 +103,24 @@
|
|||||||
#if defined __powerpc64__
|
#if defined __powerpc64__
|
||||||
# if _CALL_ELF == 2
|
# if _CALL_ELF == 2
|
||||||
.abiversion 2 /* Tell gdb what ELF version to use. */
|
.abiversion 2 /* Tell gdb what ELF version to use. */
|
||||||
|
.global _start
|
||||||
|
_start:
|
||||||
# else
|
# else
|
||||||
.abiversion 1 /* Tell gdb what ELF version to use. */
|
.abiversion 1 /* Tell gdb what ELF version to use. */
|
||||||
.align 2
|
.align 2
|
||||||
|
.global _start
|
||||||
.section ".opd", "aw"
|
.section ".opd", "aw"
|
||||||
.align 3
|
.align 3
|
||||||
|
_start:
|
||||||
.quad ._start,.TOC.@tocbase,0
|
.quad ._start,.TOC.@tocbase,0
|
||||||
.previous
|
.previous
|
||||||
.type ._start,@function
|
.type ._start,@function
|
||||||
._start:
|
._start:
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#else
|
||||||
.global _start
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
|
#endif
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
|
|
||||||
/* State that the return address for this frame is undefined. */
|
/* State that the return address for this frame is undefined. */
|
||||||
|
Reference in New Issue
Block a user