mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
887badb310
* elf-nacl.c (nacl_modify_segment_map): Fix logic reordering the elf_segment_map list. If an executable segment is page-aligned but does not end with a full page, then append a fake section into the segment map entry that pads out the page. (nacl_final_write_processing): New function. Write the code fill laid out in nacl_modify_segment_map. * elf-nacl.h: Declare it. * elf32-arm.c (elf32_arm_nacl_final_write_processing): New function. (elf_backend_final_write_processing): Define it for NaCl backend. * elf32-i386.c (elf_backend_final_write_processing): Likewise. * elf64-x86-64.c (elf_backend_final_write_processing): Likewise. * elf-nacl.c (segment_eligible_for_headers): Rename MAXPAGESIZE parameter to MINPAGESIZE. (nacl_modify_segment_map): Use minpagesize instead of maxpagesize. * elf32-arm.c (ELF_MINPAGESIZE, ELF_COMMONPAGESIZE): Set to 0x10000 for NaCl targets. ld/testsuite/ * ld-x86-64/ilp32-4-nacl.d: Loosen .shstrtab line regexp to match any file offset. * ld-x86-64/tlsbin-nacl.rd: Update expected code segment PT_LOAD. * ld-x86-64/tlsbindesc-nacl.rd: Likewise. * ld-scripts/rgn-at3.d: XFAIL for *-*-nacl* targets. * ld-scripts/rgn-over8-ok.d: Likewise.
20 lines
691 B
Makefile
20 lines
691 B
Makefile
# name: rgn-at3
|
|
# source: rgn-at.s
|
|
# ld: -T rgn-at3.t
|
|
# objdump: -w -h
|
|
# xfail: rx-*-* *-*-nacl*
|
|
# FAILS on the RX because the linker has to set LMA == VMA for the
|
|
# Renesas loader.
|
|
# FAILs on NaCl targets because the linker extends the first segment
|
|
# to fill out the page, making its p_vaddr+p_memsz cover the sh_addr
|
|
# of .bss too, which makes BFD compute its LMA from the p_paddr of the
|
|
# text segment.
|
|
|
|
.*: file format .*
|
|
|
|
Sections:
|
|
Idx +Name +Size +VMA +LMA +File off +Algn +Flags
|
|
0 .text +0+[0-9a-f][0-9a-f] +0+0010000 +0+0020000 +.*
|
|
1 .data +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+0030000 +.*
|
|
2 .bss +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+00300[0-9a-f]+ +.*
|