xtensa: ld: support -z relro

Message ID 20180307092334.5945-1-jcmvbkbc@gmail.com
State New
Headers show
Series
  • xtensa: ld: support -z relro
Related show

Commit Message

Max Filippov March 7, 2018, 9:23 a.m.
ld/
2018-03-06  Max Filippov  <jcmvbkbc@gmail.com>

	* emulparams/elf32xtensa.sh (COMMONPAGESIZE): Define.
---
 ld/emulparams/elf32xtensa.sh | 1 +
 1 file changed, 1 insertion(+)

-- 
2.11.0

Comments

augustine.sterling@gmail.com March 7, 2018, 8:31 p.m. | #1
On Wed, Mar 7, 2018 at 1:23 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> ld/

> 2018-03-06  Max Filippov  <jcmvbkbc@gmail.com>

>

>         * emulparams/elf32xtensa.sh (COMMONPAGESIZE): Define.


Approved.
Max Filippov March 7, 2018, 9:07 p.m. | #2
On Wed, Mar 7, 2018 at 12:31 PM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Wed, Mar 7, 2018 at 1:23 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:

>> ld/

>> 2018-03-06  Max Filippov  <jcmvbkbc@gmail.com>

>>

>>         * emulparams/elf32xtensa.sh (COMMONPAGESIZE): Define.

>

> Approved.


Applied to master. Thanks!

-- Max

Patch

diff --git a/ld/emulparams/elf32xtensa.sh b/ld/emulparams/elf32xtensa.sh
index 72ba2bb78064..d9ccd8392102 100644
--- a/ld/emulparams/elf32xtensa.sh
+++ b/ld/emulparams/elf32xtensa.sh
@@ -7,6 +7,7 @@  LITTLE_OUTPUT_FORMAT="elf32-xtensa-le"
 NO_REL_RELOCS=yes
 TEXT_START_ADDR=0x400000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH=xtensa
 MACHINE=
 GENERATE_SHLIB_SCRIPT=yes