From: Tom Rix Date: Wed, 12 Jun 2002 16:14:02 +0000 (+0000) Subject: Change default csect alignment to 4 bytes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4f96c78d90900dd74c25f02119c47f483d5237d;p=binutils-gdb.git Change default csect alignment to 4 bytes. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8077ecc484e..86b4627a8b9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2002-06-11 Tom Rix + + * config/tc-ppc.c (ppc_subseg_align): Delete. + (ppc_change_csect): Default csect align is 2. + * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete + 2002-06-09 Marek Michalkiewicz * config/tc-avr.c (mcu_types): Update. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index e1c7c57f506..f8b19c1f831 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1120,14 +1120,6 @@ ppc_mach () return ppc_size == PPC_OPCODE_64 ? 620 : 0; } -#ifdef OBJ_XCOFF -int -ppc_subseg_align () -{ - return ppc_xcoff64 ? 3 : 2; -} -#endif - extern char* ppc_target_format () { @@ -2836,7 +2828,7 @@ ppc_change_csect (sym) symbol_set_frag (sym, frag_now); S_SET_VALUE (sym, (valueT) frag_now_fix ()); - symbol_get_tc (sym)->align = (ppc_xcoff64) ? 3 : 2; + symbol_get_tc (sym)->align = 2; symbol_get_tc (sym)->output = 1; symbol_get_tc (sym)->within = sym; diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h index 74e77945d36..da68020d35e 100644 --- a/gas/config/tc-ppc.h +++ b/gas/config/tc-ppc.h @@ -196,10 +196,6 @@ extern int ppc_frob_symbol PARAMS ((symbolS *)); #define tc_adjust_symtab() ppc_adjust_symtab () extern void ppc_adjust_symtab PARAMS ((void)); -/* Niclas Andersson says this is needed. */ -extern int ppc_subseg_align PARAMS ((void)); -#define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) ppc_subseg_align () - /* We also need to copy, in particular, the class of the symbol, over what obj-coff would otherwise have copied. */ #define OBJ_COPY_SYMBOL_ATTRIBUTES(dest,src) \