Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: nacl/dyn-link/ldscripts/elf64_nacl.x

Issue 13638011: Align and pad code segments to 64k (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | nacl/dyn-link/ldscripts/elf64_nacl.xs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacl/dyn-link/ldscripts/elf64_nacl.x
diff --git a/nacl/dyn-link/ldscripts/elf64_nacl.x b/nacl/dyn-link/ldscripts/elf64_nacl.x
index 29d4138c1495f09054af9e35482877d2ae1088fd..d7bace585bf4e1baa4ea0bb0d040e25a4a4b4225 100644
--- a/nacl/dyn-link/ldscripts/elf64_nacl.x
+++ b/nacl/dyn-link/ldscripts/elf64_nacl.x
@@ -17,8 +17,9 @@ PHDRS
}
SECTIONS
{
- PROVIDE (__executable_start = 0x1000000); . = 0x1000000 + SIZEOF_HEADERS;
- . = ALIGN(32);
+ . = 0x1000000;
+ PROVIDE (__executable_start = .);
+
/* The ALIGN(32) instructions below are workarounds.
TODO(mseaborn): Get the object files to include the correct
alignments and padding themselves.
@@ -40,13 +41,13 @@ SECTIONS
.fini :
{
KEEP (*(.fini))
- . = ALIGN(32); /* ensures NOP fill */
+ . = ALIGN(CONSTANT (MAXPAGESIZE)); /* ensures NOP fill */
} =0x90909090
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
- . = 0x11000000 + (. & (CONSTANT (MAXPAGESIZE) - 1));
+ . = 0x11000000;
.interp : { *(.interp) } :seg_rodata :seg_interp
.note.gnu.build-id : { *(.note.gnu.build-id) } :seg_rodata
.hash : { *(.hash) }
« no previous file with comments | « no previous file | nacl/dyn-link/ldscripts/elf64_nacl.xs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698