aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorKim Knuttila <krk@cygnus>1995-11-30 18:47:11 +0000
committerKim Knuttila <krk@cygnus>1995-11-30 18:47:11 +0000
commit531a1af274c4bf2597435e2a4ffb0d3a8989fae5 (patch)
tree67a6d93513a23a29339f97f5246f69e54e0662bd /gas/config
parentd611a82e6706d8dc0c0007406e722eeef59fb702 (diff)
downloadgdb-531a1af274c4bf2597435e2a4ffb0d3a8989fae5.zip
gdb-531a1af274c4bf2597435e2a4ffb0d3a8989fae5.tar.gz
gdb-531a1af274c4bf2597435e2a4ffb0d3a8989fae5.tar.bz2
idata alignment in .s files
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ppc.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index f6ec614..26481e1 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -3125,8 +3125,6 @@ ppc_pe_section (ignore)
segT sec;
int align;
- align = 4; /* default alignment to 16 byte boundary */
-
section_name = input_line_pointer;
c = get_symbol_end ();
@@ -3140,6 +3138,29 @@ ppc_pe_section (ignore)
exp = 0;
flags = SEC_NO_FLAGS;
+ if (strcmp (name, ".idata$2") == 0)
+ {
+ align = 0;
+ }
+ else if (strcmp (name, ".idata$3") == 0)
+ {
+ align = 0;
+ }
+ else if (strcmp (name, ".idata$4") == 0)
+ {
+ align = 2;
+ }
+ else if (strcmp (name, ".idata$5") == 0)
+ {
+ align = 2;
+ }
+ else if (strcmp (name, ".idata$6") == 0)
+ {
+ align = 1;
+ }
+ else
+ align = 4; /* default alignment to 16 byte boundary */
+
if (*input_line_pointer == ',')
{
++input_line_pointer;