diff options
author | Alan Modra <amodra@gmail.com> | 2015-02-25 09:36:36 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-02-28 22:26:56 +1030 |
commit | 9028d9432c57fc0871479960f843ef4af194d5ac (patch) | |
tree | 930c4014333a3a8dffb24df45d33e7551642e62b /gas/write.c | |
parent | f01f1741df37f0330fbf2809df0ffddc992ff60c (diff) | |
download | gdb-9028d9432c57fc0871479960f843ef4af194d5ac.zip gdb-9028d9432c57fc0871479960f843ef4af194d5ac.tar.gz gdb-9028d9432c57fc0871479960f843ef4af194d5ac.tar.bz2 |
Pad only text sections at end by default
gas/
* write.c (SUB_SEGMENT_ALIGN): Don't pad non-code sections at
end to their alignment.
gas/testsuite/
* gas/sparc/pcrel.d: Update for changed padding in data sections.
* gas/sparc/pcrel64.d: Likewise.
ld/testsuite/
* ld-sparc/gotop32.rd: Update for changed padding in data sections.
* ld-sparc/gotop32.td: Likewise.
* ld-sparc/gotop64.rd: Likewise.
* ld-sparc/gotop64.td: Likewise.
* ld-tilegx/external.s: Align .data.
* ld-tilepro/external.s: Likewise.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index aefed29..949ae92 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1692,7 +1692,9 @@ set_symtab (void) of the section. This allows proper nop-filling at the end of code-bearing sections. */ #define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) \ - (!(FRCHAIN)->frch_next ? get_recorded_alignment (SEG) : 0) + (!(FRCHAIN)->frch_next && subseg_text_p (SEG) \ + ? get_recorded_alignment (SEG) \ + : 0) #else #define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0 #endif |