aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index c84b5b3..feed359 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -287,13 +287,7 @@ colon (sym_name) /* Just seen "x:" - rattle symbols & frags. */
{
register symbolS *symbolP; /* Symbol we are working with. */
- if (now_seg == absolute_section)
- {
- as_bad (_("cannot define symbol `%s' in absolute section"), sym_name);
- return NULL;
- }
-
- /* Sun local labels go out of scope whenever a non-local symbol is
+ /* Sun local labels go out of scope whenever a non-local symbol is
defined. */
if (LOCAL_LABELS_DOLLAR)
{
@@ -319,6 +313,13 @@ colon (sym_name) /* Just seen "x:" - rattle symbols & frags. */
extern const int md_short_jump_size;
extern const int md_long_jump_size;
+
+ if (now_seg == absolute_section)
+ {
+ as_bad (_("cannot define symbol `%s' in absolute section"), sym_name);
+ return NULL;
+ }
+
possible_bytes = (md_short_jump_size
+ new_broken_words * md_long_jump_size);