aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-nacl.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-08-26 19:27:25 +0000
committerRoland McGrath <roland@gnu.org>2013-08-26 19:27:25 +0000
commit887badb310f11f59df2f6833a6bd0b219ba225a0 (patch)
treef196415a00ae9ff7f2e6a97c4eecc4bb6a4d687d /bfd/elf-nacl.h
parent779bd270818aeb064c2d218ad8f80a3b608f95c9 (diff)
downloadgdb-887badb310f11f59df2f6833a6bd0b219ba225a0.zip
gdb-887badb310f11f59df2f6833a6bd0b219ba225a0.tar.gz
gdb-887badb310f11f59df2f6833a6bd0b219ba225a0.tar.bz2
bfd/
* 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.
Diffstat (limited to 'bfd/elf-nacl.h')
-rw-r--r--bfd/elf-nacl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf-nacl.h b/bfd/elf-nacl.h
index 417c7e3..87719ef 100644
--- a/bfd/elf-nacl.h
+++ b/bfd/elf-nacl.h
@@ -1,5 +1,5 @@
/* Native Client support for ELF
- Copyright 2012 Free Software Foundation, Inc.
+ Copyright 2012, 2013 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -22,3 +22,4 @@
bfd_boolean nacl_modify_segment_map (bfd *, struct bfd_link_info *);
bfd_boolean nacl_modify_program_headers (bfd *, struct bfd_link_info *);
+void nacl_final_write_processing (bfd *, bfd_boolean linker);