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.
This commit is contained in:
parent
a9320ff3bd
commit
3b9d3fa4fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25262
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user