diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-08-21 11:34:06 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-08-21 11:34:06 -0300 |
commit | f3ae7dbacf5aeb9df207f5dacd778a2f6eab24fc (patch) | |
tree | 007fb5f9f137a4cb155cbf457fcd3ae320c2e6f4 /gold/arm.cc | |
parent | 1d72c7445857652f3eb423f2702bc5981580fb63 (diff) | |
parent | b5d3ac25628b1a16409a9816623c34a45377d400 (diff) | |
download | gdb-users/linaro/binutils-2_27-branch.zip gdb-users/linaro/binutils-2_27-branch.tar.gz gdb-users/linaro/binutils-2_27-branch.tar.bz2 |
Merge with binutils-2_27-branch rev b5d3ac20users/linaro/binutils-2_27-branch
Change-Id: Iaa5f379bb904c3eb5b6e041c62c24076d2838063
Diffstat (limited to 'gold/arm.cc')
-rw-r--r-- | gold/arm.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gold/arm.cc b/gold/arm.cc index c47b002..d9c0a2b 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -6555,9 +6555,9 @@ Arm_relobj<big_endian>::do_relocate_sections( Output_file* of, typename Sized_relobj_file<32, big_endian>::Views* pviews) { - // Call parent to relocate sections. - Sized_relobj_file<32, big_endian>::do_relocate_sections(symtab, layout, - pshdrs, of, pviews); + // Relocate the section data. + this->relocate_section_range(symtab, layout, pshdrs, of, pviews, + 1, this->shnum() - 1); // We do not generate stubs if doing a relocatable link. if (parameters->options().relocatable()) @@ -11998,6 +11998,8 @@ Target_arm<big_endian>::scan_reloc_section_for_stubs( if (!is_defined_in_discarded_section) { typedef Sized_relobj_file<32, big_endian> ObjType; + if (psymval->is_section_symbol()) + symval.set_is_section_symbol(); typename ObjType::Compute_final_local_value_status status = arm_object->compute_final_local_value(r_sym, psymval, &symval, relinfo->symtab); |