summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c9
-rw-r--r--gas/testsuite/ChangeLog10
-rw-r--r--gas/testsuite/gas/i386/ilp32/x86-64-size-1.d4
-rw-r--r--gas/testsuite/gas/i386/ilp32/x86-64-size-5.d4
-rw-r--r--gas/testsuite/gas/i386/ilp32/x86-64-unwind.d6
-rw-r--r--gas/testsuite/gas/i386/size-3.d4
-rw-r--r--gas/testsuite/gas/i386/x86-64-size-1.d4
-rw-r--r--gas/testsuite/gas/i386/x86-64-unwind.d6
9 files changed, 29 insertions, 23 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d80bff8a28..d429af9c64 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 f7d488cf45..eb575998f5 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 f8ae2b8615..c572d9c551 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 7b0884f4f4..d3e5a13f87 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 1c420fa990..46d38e65aa 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 3c9f88b3fa..d92f9c4875 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 78a9fb61e9..4f01766bab 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 03484f8f53..798229ed43 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 ce60be4457..fbfc580817 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