diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2007-01-11 12:23:53 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2007-01-11 12:23:53 +0000 |
commit | 59e0647f0d3c0176557aef0f0d6fc14ee44a0b2a (patch) | |
tree | 24b862907e031ac594072b2dea3a720d1f0dfb38 /ld/testsuite/ld-elf/header.d | |
parent | e2204714e24debd8c495122615ea1582724db750 (diff) | |
download | binutils-gdb-59e0647f0d3c0176557aef0f0d6fc14ee44a0b2a.tar.gz |
bfd/
* elf.c (assign_file_positions_for_load_sections): We can
require fewer phdrs than expected.
ld/
* emultempl/elf-generic.em (gdl_map_segments): Only allow header
shrinkage for the first few iterations.
ld/testsuite/
* ld-elf/header.d: New.
* ld-elf/header.t: New.
* ld-elf/header.s: New.
Diffstat (limited to 'ld/testsuite/ld-elf/header.d')
-rw-r--r-- | ld/testsuite/ld-elf/header.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/header.d b/ld/testsuite/ld-elf/header.d new file mode 100644 index 00000000000..bc4bed3dd61 --- /dev/null +++ b/ld/testsuite/ld-elf/header.d @@ -0,0 +1,12 @@ +# ld: -T header.t -z max-page-size=0x10000 +# objdump: -hpw + +#... +Program Header: + LOAD off 0x0*0000000 vaddr 0x0*0010000 paddr 0x0*0010000 align 2..16 + filesz 0x0*001002[48] memsz 0x0*001002[48] flags rwx + +Sections: +Idx Name Size VMA *LMA *File off Algn Flags + 0 .text 0*000ffac 0*001007[48] 0*001007[48] 0*000007[48] 2... CONTENTS, ALLOC, LOAD, READONLY, CODE + 1 .data 0*0000004 0*002002[04] 0*002002[04] 0*001002[04] 2... CONTENTS, ALLOC, LOAD, DATA |