This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Set bfd_com_section on all common syms.
On Tue, Nov 15, 2005 at 07:34:41PM +1030, Alan Modra wrote:
> * read.c (s_comm_internal): Set bfd_com_section segment.
> (s_mri_common): Likewise.
Committing, along with the following.
* write.c (write_object_file): Remove non-BFD assembler common
sym handling.
Index: gas/write.c
===================================================================
RCS file: /cvs/src/src/gas/write.c,v
retrieving revision 1.97
diff -u -p -r1.97 write.c
--- gas/write.c 25 Oct 2005 14:07:44 -0000 1.97
+++ gas/write.c 15 Nov 2005 22:53:58 -0000
@@ -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
--
Alan Modra
IBM OzLabs - Linux Technology Centre