about summary refs log tree commit diff
path: root/sysdeps/aarch64/dl-sysdep.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-05-03 17:01:44 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-05-05 13:52:17 +0100
commit94c82dda28369de49a68e25ac606b828a2e4fd02 (patch)
tree046d2fe3771f2a9be57aea7333577816cc5dcc08 /sysdeps/aarch64/dl-sysdep.h
parenta7d9779fde219ba7d64b7a540f994a86914f8d9d (diff)
downloadglibc-94c82dda28369de49a68e25ac606b828a2e4fd02.tar.gz
glibc-94c82dda28369de49a68e25ac606b828a2e4fd02.tar.xz
glibc-94c82dda28369de49a68e25ac606b828a2e4fd02.zip
rtld: Remove DL_ARGV_NOT_RELRO and make _dl_skip_args const
_dl_skip_args is always 0, so the target specific code that modifies
argv after relro protection is applied is no longer used.

After the patch relro protection is applied to _dl_argv consistently
on all targets.

---
v6:
- const _dl_skip_args.
v4:
- New patch.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Tested-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/aarch64/dl-sysdep.h')
-rw-r--r--sysdeps/aarch64/dl-sysdep.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/aarch64/dl-sysdep.h b/sysdeps/aarch64/dl-sysdep.h
index 667786671c..1516dd7d3f 100644
--- a/sysdeps/aarch64/dl-sysdep.h
+++ b/sysdeps/aarch64/dl-sysdep.h
@@ -18,8 +18,4 @@
 
 #include_next <dl-sysdep.h>
 
-/* _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