diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-05-31 17:27:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-05-31 17:27:28 +0000 |
commit | f60cf82f204ed6f59ced98ca15b5d50ced6d5aea (patch) | |
tree | 0fb10c91014060be22f8551e1a88532579dfcd02 /gas | |
parent | a3f278e22a8dcc933aae2d3e705c06615887a36d (diff) | |
download | gdb-f60cf82f204ed6f59ced98ca15b5d50ced6d5aea.zip gdb-f60cf82f204ed6f59ced98ca15b5d50ced6d5aea.tar.gz gdb-f60cf82f204ed6f59ced98ca15b5d50ced6d5aea.tar.bz2 |
Don't align text/data/bss sections for ELF
binutils/testsuite/
* binutils-all/i386/compressed-1b.d: Updated for text/data/bss
section alignment change.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/x86-64/compressed-1b.d: Likewise.
* binutils-all/x86-64/compressed-1c.d: Likewise.
gas/
* config/tc-i386.c (md_begin): Don't align text/data/bss sections
for ELF.
gas/testsuite/
* gas/i386/size-3.d: Updated for text/data/bss section alignment
change.
* gas/i386/x86-64-size-1.d: Likewise.
* gas/i386/x86-64-unwind.d: Likewise.
* gas/i386/ilp32/x86-64-size-1.d: Likewise.
* gas/i386/ilp32/x86-64-size-5.d: Likewise.
* gas/i386/ilp32/x86-64-unwind.d: Likewise.
ld/testsuite/
* ld-i386/pr12718.d: Updated for text/data/bss section alignment
change.
* ld-i386/tlsbindesc.dd: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlspic.dd: Likewise.
* ld-x86-64/ilp32-4.d: Likewise.
* ld-x86-64/pr12718.d: Likewise.
* ld-x86-64/split-by-file.rd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsdesc.dd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 9 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-size-1.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-size-5.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-unwind.d | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/size-3.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-size-1.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-unwind.d | 6 |
9 files changed, 29 insertions, 23 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d80bff8..d429af9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2013-05-31 H.J. Lu <hongjiu.lu@intel.com> + + * config/tc-i386.c (md_begin): Don't align text/data/bss sections + for ELF. + 2013-05-31 Paul Brook <paul@codesourcery.com> gas/ diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index f7d488c..eb57599 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2454,15 +2454,6 @@ md_begin (void) operand_chars[(unsigned char) *p] = *p; } -#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) - if (IS_ELF) - { - record_alignment (text_section, 2); - record_alignment (data_section, 2); - record_alignment (bss_section, 2); - } -#endif - if (flag_code == CODE_64BIT) { #if defined (OBJ_COFF) && defined (TE_PE) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f8ae2b8..c572d9c 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2013-05-31 H.J. Lu <hongjiu.lu@intel.com> + + * gas/i386/size-3.d: Updated for text/data/bss section alignment + change. + * gas/i386/x86-64-size-1.d: Likewise. + * gas/i386/x86-64-unwind.d: Likewise. + * gas/i386/ilp32/x86-64-size-1.d: Likewise. + * gas/i386/ilp32/x86-64-size-5.d: Likewise. + * gas/i386/ilp32/x86-64-unwind.d: Likewise. + 2013-05-31 Catherine Moore <clm@codesourcery.com> gas/testsuite/ diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d b/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d index 7b0884f..d3e5a13f 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d @@ -3,7 +3,7 @@ #readelf: -r -Relocation section '.rela.text' at offset 0x2e0 contains 9 entries: +Relocation section '.rela.text' at offset 0x2dc contains 9 entries: Offset Info Type Sym.Value Sym. Name \+ Addend 0+1 00000420 R_X86_64_SIZE32 00000000 xxx \+ 0 0+6 00000420 R_X86_64_SIZE32 00000000 xxx - 8 @@ -15,7 +15,7 @@ Relocation section '.rela.text' at offset 0x2e0 contains 9 entries: 0+24 00000620 R_X86_64_SIZE32 00000020 zzz - 20 0+29 00000620 R_X86_64_SIZE32 00000020 zzz \+ 20 -Relocation section '.rela.data' at offset 0x34c contains 3 entries: +Relocation section '.rela.data' at offset 0x348 contains 3 entries: Offset Info Type Sym.Value Sym. Name \+ Addend 0+50 00000420 R_X86_64_SIZE32 00000000 xxx - 1 0+54 00000520 R_X86_64_SIZE32 00000000 yyy \+ 2 diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d b/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d index 1c420fa..46d38e6 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d @@ -3,13 +3,13 @@ #readelf: -r -Relocation section '.rela.text' at offset 0x2dc contains 3 entries: +Relocation section '.rela.text' at offset 0x2d8 contains 3 entries: Offset Info Type Sym.Value Sym. Name \+ Addend 0+2 00000421 R_X86_64_SIZE64 00000000 xxx \+ 0 0+c 00000421 R_X86_64_SIZE64 00000000 xxx - 8 0+16 00000421 R_X86_64_SIZE64 00000000 xxx \+ 8 -Relocation section '.rela.data' at offset 0x300 contains 3 entries: +Relocation section '.rela.data' at offset 0x2fc contains 3 entries: Offset Info Type Sym.Value Sym. Name \+ Addend 0+50 00000421 R_X86_64_SIZE64 00000000 xxx - 1 0+58 00000621 R_X86_64_SIZE64 00000000 yyy \+ c8 diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d b/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d index 3c9f88b..d92f9c4 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d @@ -7,9 +7,9 @@ There are 8 section headers, starting at offset 0x74: Section Headers: \[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al \[ 0\] NULL 00000000 000000 000000 00 0 0 0 - \[ 1\] .text PROGBITS 00000000 000034 000000 00 AX 0 0 4 - \[ 2\] .data PROGBITS 00000000 000034 000000 00 WA 0 0 4 - \[ 3\] .bss NOBITS 00000000 000034 000000 00 WA 0 0 4 + \[ 1\] .text PROGBITS 00000000 000034 000000 00 AX 0 0 1 + \[ 2\] .data PROGBITS 00000000 000034 000000 00 WA 0 0 1 + \[ 3\] .bss NOBITS 00000000 000034 000000 00 WA 0 0 1 \[ 4\] .eh_frame X86_64_UNWIND 00000000 000034 000008 00 A 0 0 1 \[ 5\] .shstrtab STRTAB 00000000 00003c 000036 00 0 0 1 \[ 6\] .symtab SYMTAB 00000000 0001b4 000050 10 7 5 4 diff --git a/gas/testsuite/gas/i386/size-3.d b/gas/testsuite/gas/i386/size-3.d index 78a9fb6..4f01766 100644 --- a/gas/testsuite/gas/i386/size-3.d +++ b/gas/testsuite/gas/i386/size-3.d @@ -2,7 +2,7 @@ #readelf: -r -Relocation section '.rel.text' at offset 0x334 contains 6 entries: +Relocation section '.rel.text' at offset 0x330 contains 6 entries: Offset Info Type Sym.Value Sym. Name 0+1 00000626 R_386_SIZE32 00000000 xxx 0+6 00000626 R_386_SIZE32 00000000 xxx @@ -11,7 +11,7 @@ Relocation section '.rel.text' at offset 0x334 contains 6 entries: 0+15 00000726 R_386_SIZE32 00000000 yyy 0+1a 00000726 R_386_SIZE32 00000000 yyy -Relocation section '.rel.tdata' at offset 0x364 contains 2 entries: +Relocation section '.rel.tdata' at offset 0x360 contains 2 entries: Offset Info Type Sym.Value Sym. Name 0+50 00000626 R_386_SIZE32 00000000 xxx 0+54 00000726 R_386_SIZE32 00000000 yyy diff --git a/gas/testsuite/gas/i386/x86-64-size-1.d b/gas/testsuite/gas/i386/x86-64-size-1.d index 03484f8..798229e 100644 --- a/gas/testsuite/gas/i386/x86-64-size-1.d +++ b/gas/testsuite/gas/i386/x86-64-size-1.d @@ -3,7 +3,7 @@ #readelf: -r -Relocation section '.rela.text' at offset 0x400 contains 9 entries: +Relocation section '.rela.text' at offset 0x3f8 contains 9 entries: Offset Info Type Sym. Value Sym. Name \+ Addend 0+1 000400000020 R_X86_64_SIZE32 0000000000000000 xxx \+ 0 0+6 000400000020 R_X86_64_SIZE32 0000000000000000 xxx - 8 @@ -15,7 +15,7 @@ Relocation section '.rela.text' at offset 0x400 contains 9 entries: 0+24 000600000020 R_X86_64_SIZE32 0000000000000020 zzz - 20 0+29 000600000020 R_X86_64_SIZE32 0000000000000020 zzz \+ 20 -Relocation section '.rela.data' at offset 0x4d8 contains 3 entries: +Relocation section '.rela.data' at offset 0x4d0 contains 3 entries: Offset Info Type Sym. Value Sym. Name \+ Addend 0+50 000400000020 R_X86_64_SIZE32 0000000000000000 xxx - 1 0+54 000500000020 R_X86_64_SIZE32 0000000000000000 yyy \+ 2 diff --git a/gas/testsuite/gas/i386/x86-64-unwind.d b/gas/testsuite/gas/i386/x86-64-unwind.d index ce60be4..fbfc580 100644 --- a/gas/testsuite/gas/i386/x86-64-unwind.d +++ b/gas/testsuite/gas/i386/x86-64-unwind.d @@ -9,11 +9,11 @@ Section Headers: \[ 0\] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 \[ 1\] \.text PROGBITS 0000000000000000 00000040 - 0000000000000000 0000000000000000 AX 0 0 4 + 0000000000000000 0000000000000000 AX 0 0 1 \[ 2\] \.data PROGBITS 0000000000000000 00000040 - 0000000000000000 0000000000000000 WA 0 0 4 + 0000000000000000 0000000000000000 WA 0 0 1 \[ 3\] \.bss NOBITS 0000000000000000 00000040 - 0000000000000000 0000000000000000 WA 0 0 4 + 0000000000000000 0000000000000000 WA 0 0 1 \[ 4\] \.eh_frame X86_64_UNWIND 0000000000000000 00000040 0000000000000008 0000000000000000 A 0 0 1 \[ 5\] \.shstrtab STRTAB 0000000000000000 00000048 |