From: H.J. Lu Date: Mon, 10 Jan 2005 17:22:49 +0000 (+0000) Subject: 2005-01-10 H.J. Lu X-Git-Tag: gdb-pre-i18n-errorwarning-20050211~391 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=324007b99e945fd3154afd251d249e6daa1364a2;p=platform%2Fupstream%2Fbinutils.git 2005-01-10 H.J. Lu * write.c (write_object_file): Disallow a symbol equated to common symbol. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5e41070..8a528ed 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-01-10 H.J. Lu + + * write.c (write_object_file): Disallow a symbol equated to + common symbol. + 2005-01-10 Inderpreet Singh * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and diff --git a/gas/write.c b/gas/write.c index 6ca35f2..f9a543a 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1917,6 +1917,9 @@ write_object_file (void) symbols. */ if (symbol_equated_reloc_p (symp)) { + if (S_IS_COMMON (symp)) + as_bad (_("`%s' can't be equated to common symbol"), + S_GET_NAME (symp)); symbol_remove (symp, &symbol_rootP, &symbol_lastP); continue; }