1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-23 02:12:24 +03:00

Fixes extern protected data handling testcases elf/tst-protected1a

and elf/tst-protected1b for Nios II.
This commit is contained in:
Chung-Lin Tang
2015-07-26 05:27:18 -07:00
parent 34e3f83fe1
commit ae5eae7cfc
3 changed files with 10 additions and 1 deletions

View File

@@ -193,7 +193,8 @@ _start:\n\
|| (type) == R_NIOS2_TLS_DTPMOD \
|| (type) == R_NIOS2_TLS_DTPREL \
|| (type) == R_NIOS2_TLS_TPREL) * ELF_RTYPE_CLASS_PLT) \
| (((type) == R_NIOS2_COPY) * ELF_RTYPE_CLASS_COPY))
| (((type) == R_NIOS2_COPY) * ELF_RTYPE_CLASS_COPY) \
| (((type) == R_NIOS2_GLOB_DAT) * ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA))
/* A reloc type used for ld.so cmdline arg lookups to reject PLT entries. */
#define ELF_MACHINE_JMP_SLOT R_NIOS2_JUMP_SLOT

View File

@@ -21,3 +21,5 @@
/* _dl_argv cannot be attribute_relro, because _dl_start_user
might write into it after _dl_start returns. */
#define DL_ARGV_NOT_RELRO 1
#define DL_EXTERN_PROTECTED_DATA