7cf492ee5a
* ld-elf/eh1.d: Add explicit --64 to as options, and explicit -melf_x86_64 and -Ttext to ld options, so we don't assume every x86_64-*-* target uses --64 (vs --x32) by default or has the same address space layout. * ld-elf/eh2.d: Likewise. * ld-elf/eh3.d: Likewise. * ld-elf/eh4.d: Likewise. * ld-elf/elf.exp: For target *-*-nacl*, use options_regsub(ld) to map -melf_x86_64 to -melf_x86_64_nacl.
34 lines
737 B
Makefile
34 lines
737 B
Makefile
#source: eh1.s
|
|
#source: eh1a.s
|
|
#as: --64
|
|
#ld: -melf_x86_64 -Ttext 0x400078
|
|
#readelf: -wf
|
|
#target: x86_64-*-*
|
|
|
|
Contents of the .eh_frame section:
|
|
|
|
00000000 00000014 00000000 CIE
|
|
Version: 1
|
|
Augmentation: ""
|
|
Code alignment factor: 1
|
|
Data alignment factor: -8
|
|
Return address column: 16
|
|
|
|
DW_CFA_def_cfa: r7 \(rsp\) ofs 8
|
|
DW_CFA_offset: r16 \(rip\) at cfa-8
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
DW_CFA_nop
|
|
|
|
00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078
|
|
DW_CFA_advance_loc: 0 to 00400078
|
|
DW_CFA_def_cfa_offset: 16
|
|
DW_CFA_offset: r6 \(rbp\) at cfa-16
|
|
DW_CFA_advance_loc: 0 to 00400078
|
|
DW_CFA_def_cfa_register: r6 \(rbp\)
|
|
|
|
00000038 ZERO terminator
|
|
|