idata alignment in .s files
This commit is contained in:
parent
d611a82e67
commit
531a1af274
2 changed files with 28 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 30 13:25:49 1995 Kim Knuttila <krk@cygnus.com>
|
||||
|
||||
* config/tc-ppc.c (ppc_pe_section): To get the alignment right for
|
||||
the various idata sections, we check the name on the .section pseudo.
|
||||
|
||||
Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
|
||||
|
||||
* config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue