From 9eda1ce917a07a58baeddb7de787062c678b7776 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 15 Nov 2005 22:58:38 +0000 Subject: * read.c (s_comm_internal): Set bfd_com_section segment. (s_mri_common): Likewise. * write.c (write_object_file): Remove non-BFD assembler common sym handling. --- gas/ChangeLog | 7 +++++++ gas/read.c | 2 ++ gas/write.c | 6 ------ 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 6a2e5cb..1ef760e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2005-11-16 Alan Modra + + * read.c (s_comm_internal): Set bfd_com_section segment. + (s_mri_common): Likewise. + * write.c (write_object_file): Remove non-BFD assembler common + sym handling. + 2005-11-15 Daniel Jacobowitz * config/tc-arm.c (s_arm_unwind_save_core): Don't emit an extra diff --git a/gas/read.c b/gas/read.c index bf9346e..a398e52 100644 --- a/gas/read.c +++ b/gas/read.c @@ -1490,6 +1490,7 @@ s_comm_internal (int param, { S_SET_VALUE (symbolP, (valueT) size); S_SET_EXTERNAL (symbolP); + S_SET_SEGMENT (symbolP, bfd_com_section_ptr); #ifdef OBJ_VMS { extern int flag_one; @@ -1583,6 +1584,7 @@ s_mri_common (int small ATTRIBUTE_UNUSED) } S_SET_EXTERNAL (sym); + S_SET_SEGMENT (sym, bfd_com_section_ptr); mri_common_symbol = sym; #ifdef S_SET_ALIGN diff --git a/gas/write.c b/gas/write.c index 0613367..f86930b 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1493,12 +1493,6 @@ write_object_file (void) continue; } - /* So far, common symbols have been treated like undefined symbols. - Put them in the common section now. */ - if (S_IS_DEFINED (symp) == 0 - && S_GET_VALUE (symp) != 0) - S_SET_SEGMENT (symp, bfd_com_section_ptr); - #ifdef obj_frob_symbol obj_frob_symbol (symp, punt); #endif -- cgit v1.1