i386: Set ELF_MAXPAGESIZE to 0x1000 for VxWorks
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Apr 2017 16:37:10 +0000 (09:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Apr 2017 16:37:10 +0000 (09:37 -0700)
commit a27e437177412e5b52999723f3c5d5d0d37b9087
Author: Roland McGrath <roland@gnu.org>
Date:   Thu Jul 28 22:35:15 2011 +0000

    BFD vector for elf32-i386-nacl:

changed ELF_MAXPAGESIZE to 0x10000 for VxWorks.  This patch fixes it
and updated testsuite/ld-i386/vxworks2.sd to add space for program
headers.

bfd/

PR ld/21425
* elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.

ld/

PR ld/20815
* testsuite/ld-i386/vxworks2.sd: Add space for program headers.

bfd/ChangeLog
bfd/elf32-i386.c
ld/ChangeLog
ld/testsuite/ld-i386/vxworks2.sd

index 028804624b2a3fb882426a912ea846c909ab6091..6b969d63706967846f960547fb702ab17a57babf 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/21425
+       * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
+
 2017-04-23  Alan Modra  <amodra@gmail.com>
 
        PR 21414
index 9e71974095c906bb2e39ea844c3b489d64ca88b6..83f3b11e659e867dc5ce7285c04e1cbabe62666d 100644 (file)
@@ -6680,6 +6680,8 @@ elf32_i386_nacl_elf_object_p (bfd *abfd)
 #undef TARGET_LITTLE_NAME
 #define TARGET_LITTLE_NAME             "elf32-i386-vxworks"
 #undef ELF_OSABI
+#undef ELF_MAXPAGESIZE
+#define ELF_MAXPAGESIZE                        0x1000
 #undef elf_backend_plt_alignment
 #define elf_backend_plt_alignment      4
 
index 9ab31fa1fbceb919a3534c2438213b0213da0cba..07afee4d78e2d62ba60da1902382813e807bcfd8 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20815
+       * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
+
 2017-04-24  Jose E. Marchesi  <jose.marchesi@oracle.com>
 
        * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
index 5ff87d3bef81d14e73d9a80f8ef1bb79c58cd05e..4f56f2ac7ec1b98b2394fffadafb44977016ddcd 100644 (file)
@@ -6,7 +6,7 @@ Program Headers:
   Type .*
   PHDR .*
 #...
-  LOAD .* 0x00080000 0x00080000 .* R E 0x1000
+  LOAD .* 0x0007f000 0x0007f000 .* R E 0x1000
   LOAD .* 0x00081000 0x00081000 .* RW  0x1000
   DYNAMIC .*
 
This page took 0.031672 seconds and 4 git commands to generate.