From 2fb4b302aae40bf05c70dbcfb34a14959435354f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 14 Jun 2011 09:03:52 +0000 Subject: gas/ 2011-06-14 Tristan Gingold * config/tc-ppc.h (struct ppc_tc_sy): Complete comment on within. (tc_new_dot_label): Define. (ppc_new_dot_label): Declare. * config/tc-ppc.c (ppc_frob_label): Set within target field. (ppc_fix_adjustable): Use this field to adjust the reloc. (ppc_new_dot_label): New function. gas/testsuite/ 2011-06-14 Tristan Gingold * gas/ppc/test1xcoff32.d: Adjust for csect anchor. --- gas/config/tc-ppc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gas/config/tc-ppc.h') diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h index 9706f6f..a11d396 100644 --- a/gas/config/tc-ppc.h +++ b/gas/config/tc-ppc.h @@ -143,8 +143,9 @@ struct ppc_tc_sy for symbols that are not csects. */ subsegT subseg; /* For a csect symbol, the last symbol which has been defined in - this csect, or NULL if none have been defined so far. For a .bs - symbol, the referenced csect symbol. */ + this csect, or NULL if none have been defined so far. + For a .bs symbol, the referenced csect symbol. + For a label, the enclosing csect. */ symbolS *within; union { @@ -207,6 +208,9 @@ do { \ extern void ppc_xcoff_end (void); #define md_end ppc_xcoff_end +#define tc_new_dot_label(sym) ppc_new_dot_label (sym) +extern void ppc_new_dot_label (symbolS *); + #endif /* OBJ_XCOFF */ extern const char ppc_symbol_chars[]; -- cgit v1.1