projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb1fd5
)
Do not allow .globl to override .section
author
Nick Clifton
<nickc@redhat.com>
Tue, 5 Jun 2001 08:29:59 +0000
(08:29 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Tue, 5 Jun 2001 08:29:59 +0000
(08:29 +0000)
gas/symbols.c
patch
|
blob
|
history
diff --git
a/gas/symbols.c
b/gas/symbols.c
index
764217d
..
8396dab
100644
(file)
--- a/
gas/symbols.c
+++ b/
gas/symbols.c
@@
-1824,6
+1824,17
@@
S_SET_EXTERNAL (s)
/* Let .weak override .global. */
return;
}
+ if (s->bsym->flags & BSF_SECTION_SYM)
+ {
+ char * file;
+ unsigned int line;
+
+ /* Do not reassign section symbols. */
+ as_where (& file, & line);
+ as_warn_where (file, line,
+ _("Section symbols are already global"));
+ return;
+ }
s->bsym->flags |= BSF_GLOBAL;
s->bsym->flags &= ~(BSF_LOCAL | BSF_WEAK);
}