Fixed another bug in -R symbol handling
if (sdef->the_bfd->usrdata &&
((lang_input_statement_type*)(sdef->the_bfd->usrdata))->just_syms_flag == true)
{
- result = new_abs(sdef->value + sdef->section ?
- sdef->section->vma : 0);
+ result = new_abs(sdef->value + (sdef->section ?
+ sdef->section->vma : 0));
}
else {
result = new_rel(sdef->value, os);
/* Perform the iteration over a single file */
wild_section( s, section, lookup_name(file), output);
}
- if (strcmp(section,"COMMON") == 0
+ if (section != (char *)NULL
+ && strcmp(section,"COMMON") == 0
&& default_common_section == (lang_output_section_statement_type*)NULL)
{
/* Remember the section that common is going to incase we later