PowerPC64: stub uses new strategy
Needed: expert on TOC for big-endian. glibc, musl, gcc disagree on layout (is the .func first?) and usage for .e_entry. modified: p_lx_elf.cpp modified: stub/src/amd64-linux.elf-main.c modified: stub/src/amd64-linux.elf-fold.S modified: stub/src/arch/powerpc/64le/ppc_regs.h modified: stub/src/i386-linux.elf-main.c modified: stub/src/powerpc-linux.elf-entry.S modified: stub/src/powerpc-linux.elf-fold.S modified: stub/src/powerpc64le-darwin.dylib-entry.S modified: stub/src/powerpc64le-darwin.macho-entry.S modified: stub/src/powerpc64le-linux.elf-entry.S modified: stub/src/powerpc64le-linux.elf-fold.S modified: stub/Makefile also .h, .bin.dump, .map
This commit is contained in:
@@ -9,59 +9,61 @@ Linker script and memory map
|
||||
TARGET(elf64-powerpc)
|
||||
0x00000000001000bc . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
|
||||
|
||||
.text 0x00000000001000bc 0xa28
|
||||
.text 0x00000000001000bc 0xa6c
|
||||
*(.text)
|
||||
.text 0x00000000001000bc 0x2dc tmp/powerpc64-linux.elf-fold.o
|
||||
0x0000000000100344 exit
|
||||
0x000000000010034c readlink
|
||||
0x0000000000100354 brk
|
||||
0x000000000010035c close
|
||||
0x0000000000100364 open
|
||||
0x000000000010036c munmap
|
||||
0x0000000000100374 mprotect
|
||||
.text 0x00000000001000bc 0x2f0 tmp/powerpc64-linux.elf-fold.o
|
||||
0x00000000001000bc get_page_mask
|
||||
0x000000000010034c mmap
|
||||
0x0000000000100364 exit
|
||||
0x000000000010036c brk
|
||||
0x0000000000100374 readlink
|
||||
0x000000000010037c read
|
||||
0x0000000000100384 mmap
|
||||
.text 0x0000000000100398 0x74c tmp/powerpc64-linux.elf-main.o
|
||||
0x0000000000100384 open
|
||||
0x000000000010038c close
|
||||
0x0000000000100394 mprotect
|
||||
0x000000000010039c munmap
|
||||
0x00000000001003a4 my_bkpt
|
||||
.text 0x00000000001003ac 0x77c tmp/powerpc64-linux.elf-main.o
|
||||
*(.data)
|
||||
.data 0x0000000000100ae4 0x0 tmp/powerpc64-linux.elf-fold.o
|
||||
.data 0x0000000000100ae4 0x0 tmp/powerpc64-linux.elf-main.o
|
||||
.data 0x0000000000100b28 0x0 tmp/powerpc64-linux.elf-fold.o
|
||||
.data 0x0000000000100b28 0x0 tmp/powerpc64-linux.elf-main.o
|
||||
|
||||
.sfpr 0x0000000000100ae4 0xa4
|
||||
.sfpr 0x0000000000100ae4 0xa4 linker stubs
|
||||
0x0000000000100ae4 _savegpr0_14
|
||||
0x0000000000100b0c _savegpr0_24
|
||||
0x0000000000100b1c _savegpr0_28
|
||||
0x0000000000100b34 _restgpr0_14
|
||||
0x0000000000100b5c _restgpr0_24
|
||||
0x0000000000100b6c _restgpr0_28
|
||||
.sfpr 0x0000000000100b28 0xa4
|
||||
.sfpr 0x0000000000100b28 0xa4 linker stubs
|
||||
0x0000000000100b28 _savegpr0_14
|
||||
0x0000000000100b50 _savegpr0_24
|
||||
0x0000000000100b60 _savegpr0_28
|
||||
0x0000000000100b78 _restgpr0_14
|
||||
0x0000000000100ba0 _restgpr0_24
|
||||
0x0000000000100bb0 _restgpr0_28
|
||||
|
||||
.glink 0x0000000000100b88 0x0
|
||||
.glink 0x0000000000100b88 0x0 linker stubs
|
||||
.glink 0x0000000000100bd0 0x0
|
||||
.glink 0x0000000000100bd0 0x0 linker stubs
|
||||
|
||||
.eh_frame 0x0000000000100b88 0x0
|
||||
.eh_frame 0x0000000000100b88 0x0 linker stubs
|
||||
.eh_frame 0x0000000000100bcc 0x0
|
||||
.eh_frame 0x0000000000100bcc 0x0 linker stubs
|
||||
|
||||
.rela.dyn 0x0000000000100b88 0x0
|
||||
.rela.iplt 0x0000000000100b88 0x0 linker stubs
|
||||
.rela.dyn 0x0000000000100bd0 0x0
|
||||
.rela.iplt 0x0000000000100bd0 0x0 linker stubs
|
||||
|
||||
.data
|
||||
LOAD tmp/powerpc64-linux.elf-fold.o
|
||||
LOAD tmp/powerpc64-linux.elf-main.o
|
||||
OUTPUT(tmp/powerpc64-linux.elf-fold.bin elf64-powerpc)
|
||||
|
||||
.branch_lt 0x0000000000100b88 0x0
|
||||
.branch_lt 0x0000000000100b88 0x0 linker stubs
|
||||
.branch_lt 0x0000000000100bd0 0x0
|
||||
.branch_lt 0x0000000000100bd0 0x0 linker stubs
|
||||
|
||||
.toc 0x0000000000100b88 0x0
|
||||
.toc 0x0000000000100b88 0x0 tmp/powerpc64-linux.elf-main.o
|
||||
.toc 0x0000000000100bd0 0x0
|
||||
.toc 0x0000000000100bd0 0x0 tmp/powerpc64-linux.elf-main.o
|
||||
|
||||
.opd 0x0000000000100b88 0x58
|
||||
.opd 0x0000000000100b88 0x58 tmp/powerpc64-linux.elf-main.o
|
||||
0x0000000000100bc8 upx_main
|
||||
.opd 0x0000000000100bd0 0x58
|
||||
.opd 0x0000000000100bd0 0x58 tmp/powerpc64-linux.elf-main.o
|
||||
0x0000000000100c10 upx_main
|
||||
|
||||
.iplt 0x0000000000100be0 0x0
|
||||
.iplt 0x0000000000100be0 0x0 linker stubs
|
||||
.iplt 0x0000000000100c28 0x0
|
||||
.iplt 0x0000000000100c28 0x0 linker stubs
|
||||
|
||||
.bss 0x0000000000100be0 0x0
|
||||
.bss 0x0000000000100be0 0x0 tmp/powerpc64-linux.elf-fold.o
|
||||
.bss 0x0000000000100be0 0x0 tmp/powerpc64-linux.elf-main.o
|
||||
.bss 0x0000000000100c28 0x0
|
||||
.bss 0x0000000000100c28 0x0 tmp/powerpc64-linux.elf-fold.o
|
||||
.bss 0x0000000000100c28 0x0 tmp/powerpc64-linux.elf-main.o
|
||||
|
||||
Reference in New Issue
Block a user