aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-11-19 16:53:43 +1030
committerAlan Modra <amodra@gmail.com>2015-11-19 16:53:43 +1030
commitf29cf775fa9d4c8df1445e7e04bf92deda60e001 (patch)
treee5bc24d45b4368a77b3c482be412bd5a2f153471 /gas
parentb39910205f54538f53e77b9ae13f1d41ff728f5a (diff)
downloadgdb-f29cf775fa9d4c8df1445e7e04bf92deda60e001.zip
gdb-f29cf775fa9d4c8df1445e7e04bf92deda60e001.tar.gz
gdb-f29cf775fa9d4c8df1445e7e04bf92deda60e001.tar.bz2
Use default sub-segment align for non-ELF powerpc
Defining this to zero for COFF and PE meant that code sections were padded with zeros. The fact that no one has complained since 2006 says these targets are dead, I guess. * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Define only for ELF.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-ppc.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 41e44b5..009967d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-19 Alan Modra <amodra@gmail.com>
+
+ * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Define only for ELF.
+
2015-11-16 Mike Frysinger <vapier@gentoo.org>
* config/tc-microblaze.c (parse_imm): Add an offsetT cast.
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h
index d7766e3..778acf5 100644
--- a/gas/config/tc-ppc.h
+++ b/gas/config/tc-ppc.h
@@ -85,7 +85,9 @@ extern char *ppc_target_format (void);
extern void ppc_handle_align (struct frag *);
extern void ppc_frag_check (struct frag *);
+#ifdef OBJ_ELF
#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
+#endif
#define md_frag_check(FRAGP) ppc_frag_check (FRAGP)