diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-01-23 16:29:34 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-01-23 16:29:34 +0000 |
commit | c3ba240c754f32f7ac05536462793dc659928b0f (patch) | |
tree | 0c3a13816ae128bff8c8a6cad5c2f9e6ef3e4e61 /gas | |
parent | 34cc4ecc82991f61e55c2625d32115d865575310 (diff) | |
download | gdb-c3ba240c754f32f7ac05536462793dc659928b0f.zip gdb-c3ba240c754f32f7ac05536462793dc659928b0f.tar.gz gdb-c3ba240c754f32f7ac05536462793dc659928b0f.tar.bz2 |
* config/tc-arm.c (tc_gen_reloc): Improve error message for
undefined local labels.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1f8f81a..4040f2e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-01-23 Daniel Jacobowitz <drow@mvista.com> + + * config/tc-arm.c (tc_gen_reloc): Improve error message for + undefined local labels. + 2004-01-23 Richard Sandiford <rsandifo@redhat.com> * config/tc-mips.c (load_address, macro): Update comments about diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index c290a92..aef76e7 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -12823,6 +12823,16 @@ tc_gen_reloc (section, fixp) return NULL; case BFD_RELOC_ARM_OFFSET_IMM: + if (fixp->fx_addsy != NULL + && !S_IS_DEFINED (fixp->fx_addsy) + && S_IS_LOCAL (fixp->fx_addsy)) + { + as_bad_where (fixp->fx_file, fixp->fx_line, + _("undefined local label `%s'"), + S_GET_NAME (fixp->fx_addsy)); + return NULL; + } + as_bad_where (fixp->fx_file, fixp->fx_line, _("internal_relocation (type: OFFSET_IMM) not fixed up")); return NULL; |