Révision | f074fbaf5263f239cb56244d7ab0bee25a478c16 (tree) |
---|---|
l'heure | 2022-12-13 11:12:30 |
Auteur | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
WIP: ld rx-fdpic
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -15,5 +15,16 @@ GENERATE_PIE_SCRIPT=yes | ||
15 | 15 | |
16 | 16 | STACK_ADDR="(DEFINED(__stack) ? __stack : 0xbffffffc)" |
17 | 17 | STACK_SENTINEL="LONG(0xdeaddead)" |
18 | +GOT=".got ${RELOCATING-0} : {${RELOCATING+ *(.got.funcdesc) *(.got.plt)} *(.got) }" | |
19 | +OTHER_GOT_RELOC_SECTIONS=" | |
20 | + .rela.got.funcdesc ${RELOCATING-0} : { *(.rela.got.funcdesc) } | |
21 | +" | |
22 | +OTHER_READONLY_SECTIONS=" | |
23 | + .rofixup : { | |
24 | + ${RELOCATING+__ROFIXUP_LIST__ = .;} | |
25 | + *(.rofixup) | |
26 | + ${RELOCATING+__ROFIXUP_END__ = .;} | |
27 | + } | |
28 | +" | |
18 | 29 | # We do not need .stack for shared library. |
19 | 30 | test -n "$CREATE_SHLIB" && unset STACK_ADDR |