This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
We get into trouble only when we try to use bar3. This patch catches
all cases. But it doesn't report the correct line number.
+void +elf_obj_validate_symbol_value (symbolS *symbolP) +{ + if (!IS_ELF) + return; + + if (symbolP->bsym->section == reg_section) + { + const char *name = S_GET_NAME (symbolP); + + /* Report error only if we know the symbol name. */ + if (name != reg_section->name) + as_bad (_("Invalid value for symbol `%s'"), name); + } +}
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |