summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-04-29 02:11:48 +0000
committerjdp <jdp@FreeBSD.org>1997-04-29 02:11:48 +0000
commitb06d78ec5774ef2808bbaba50f48cfccc68a999d (patch)
tree8b8327e2f096c8ca6fd81ce9cc77fa9cda47f749 /gnu
parentd9ec773b46d66f5676cae1dc9868470019b769a1 (diff)
downloadFreeBSD-src-b06d78ec5774ef2808bbaba50f48cfccc68a999d.zip
FreeBSD-src-b06d78ec5774ef2808bbaba50f48cfccc68a999d.tar.gz
Set the N_EXT (external) flag for all weak symbols. It makes no
sense to have a weak symbol that is not externally visible. This fixes many of the "relocation burb" warnings produced when compiling C++ code with "-fpic". Beyond eliminating warnings, it also makes some things work that didn't work before.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/as/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/as/read.c b/gnu/usr.bin/as/read.c
index 9ca1013..59beec3 100644
--- a/gnu/usr.bin/as/read.c
+++ b/gnu/usr.bin/as/read.c
@@ -19,7 +19,7 @@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
-static char rcsid[] = "$Id: read.c,v 1.9 1997/02/22 15:43:44 peter Exp $";
+static char rcsid[] = "$Id: read.c,v 1.10 1997/03/29 02:16:44 jdp Exp $";
#endif
#define MASK_CHAR (0xFF) /* If your chars aren't 8 bits, you will
@@ -1271,6 +1271,7 @@ void s_weak() {
symbolP = symbol_find_or_make(name);
* input_line_pointer = c;
SKIP_WHITESPACE();
+ S_SET_EXTERNAL(symbolP);
symbolP->sy_bind = BIND_WEAK;
if (c == ',') {
input_line_pointer++;
OpenPOWER on IntegriCloud