mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
gld${EMULATION_NAME}_list_options): Don't condition -z relro and -z norelro on COMMONPAGESIZE being defined.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2011-07-14 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
|
||||||
|
gld${EMULATION_NAME}_list_options): Don't condition -z relro
|
||||||
|
and -z norelro on COMMONPAGESIZE being defined.
|
||||||
|
|
||||||
2011-07-14 Alan Modra <amodra@gmail.com>
|
2011-07-14 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* emultempl/ppc64elf.em (plt_static_chain): New var.
|
* emultempl/ppc64elf.em (plt_static_chain): New var.
|
||||||
|
@ -2323,17 +2323,12 @@ fragment <<EOF
|
|||||||
link_info.combreloc = FALSE;
|
link_info.combreloc = FALSE;
|
||||||
else if (strcmp (optarg, "nocopyreloc") == 0)
|
else if (strcmp (optarg, "nocopyreloc") == 0)
|
||||||
link_info.nocopyreloc = TRUE;
|
link_info.nocopyreloc = TRUE;
|
||||||
EOF
|
|
||||||
|
|
||||||
if test -n "$COMMONPAGESIZE"; then
|
|
||||||
fragment <<EOF
|
|
||||||
else if (strcmp (optarg, "relro") == 0)
|
else if (strcmp (optarg, "relro") == 0)
|
||||||
link_info.relro = TRUE;
|
link_info.relro = TRUE;
|
||||||
else if (strcmp (optarg, "norelro") == 0)
|
else if (strcmp (optarg, "norelro") == 0)
|
||||||
link_info.relro = FALSE;
|
link_info.relro = FALSE;
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
fragment <<EOF
|
fragment <<EOF
|
||||||
else
|
else
|
||||||
@ -2444,28 +2439,18 @@ fragment <<EOF
|
|||||||
-z noexecstack Mark executable as not requiring executable stack\n"));
|
-z noexecstack Mark executable as not requiring executable stack\n"));
|
||||||
EOF
|
EOF
|
||||||
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
|
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
|
||||||
if test -n "$COMMONPAGESIZE"; then
|
|
||||||
fragment <<EOF
|
fragment <<EOF
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z norelro Don't create RELRO program header\n"));
|
-z norelro Don't create RELRO program header\n"));
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
fragment <<EOF
|
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z now Mark object non-lazy runtime binding\n"));
|
-z now Mark object non-lazy runtime binding\n"));
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z origin Mark object requiring immediate \$ORIGIN\n\
|
-z origin Mark object requiring immediate \$ORIGIN\n\
|
||||||
processing at runtime\n"));
|
processing at runtime\n"));
|
||||||
EOF
|
|
||||||
|
|
||||||
if test -n "$COMMONPAGESIZE"; then
|
|
||||||
fragment <<EOF
|
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z relro Create RELRO program header\n"));
|
-z relro Create RELRO program header\n"));
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if test -n "$PARSE_AND_LIST_OPTIONS" ; then
|
if test -n "$PARSE_AND_LIST_OPTIONS" ; then
|
||||||
fragment <<EOF
|
fragment <<EOF
|
||||||
|
Reference in New Issue
Block a user