5db3e65d39
execute permission regardless of the underlying PT_LOAD segment permissions. Deleting this code allows the default linker behavior which is to set the dynamic segment to the same permissions as the sections that make it up. This change alters one existing test case to check the segment flags for PT_DYNAMIC. bfd/ChangeLog * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of PT_DYNAMIC segment flags. ld/testsuite/ChangeLog * ld-mips-elf/pic-and-nonpic-3a.sd: Check DYNAMIC segment flags.
20 lines
687 B
Text
20 lines
687 B
Text
|
|
Elf file type is DYN \(Shared object file\)
|
|
Entry point .*
|
|
There are 5 program headers, starting at offset .*
|
|
|
|
Program Headers:
|
|
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align
|
|
* REGINFO * [^ ]+ * 0x0+00000 * 0x0+00000 [^ ]+ * [^ ]+ * R * 0x.*
|
|
* LOAD * [^ ]+ * 0x0+00000 * 0x0+00000 [^ ]+ * [^ ]+ * R E * 0x.*
|
|
* LOAD * [^ ]+ * 0x0+10000 * 0x0+10000 [^ ]+ * [^ ]+ * RW * 0x.*
|
|
* DYNAMIC * [^ ]+ * 0x0+00400 * 0x0+00400 [^ ]+ * [^ ]+ * R * 0x.*
|
|
* NULL * .*
|
|
|
|
*Section to Segment mapping:
|
|
*Segment Sections\.\.\.
|
|
*0*0 * \.reginfo *
|
|
*0*1 * \.reginfo \.dynamic \.dynsym \.dynstr \.hash \.text \.MIPS.stubs *
|
|
*0*2 * \.data \.got *
|
|
*0*3 * \.dynamic *
|
|
*0*4 *
|