Solaris PIE support
include/elf: * common.h (DF_1_STUB, DF_1_PIE): Define. ld: * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes. * emultempl/elf32.em: Include ldlex.h. (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT] <OPTION_PIE>: Set DF_1_PIE. binutils: * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
This commit is contained in:
parent
6dca4fd141
commit
5c383f0262
7 changed files with 38 additions and 0 deletions
|
@ -9241,6 +9241,16 @@ process_dynamic_section (FILE * file)
|
|||
printf (" SINGLETON");
|
||||
val ^= DF_1_SINGLETON;
|
||||
}
|
||||
if (val & DF_1_STUB)
|
||||
{
|
||||
printf (" STUB");
|
||||
val ^= DF_1_STUB;
|
||||
}
|
||||
if (val & DF_1_PIE)
|
||||
{
|
||||
printf (" PIE");
|
||||
val ^= DF_1_PIE;
|
||||
}
|
||||
if (val != 0)
|
||||
printf (" %lx", val);
|
||||
puts ("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue