From f4a8b6d7abcc3093c8011a74441ecc8d9983346c Mon Sep 17 00:00:00 2001 From: Doug Kwan Date: Fri, 11 Nov 2011 21:49:36 +0000 Subject: [PATCH] 2011-11-11 Doug Kwan * arm.cc (Target_arm::do_make_elf_object): Allow executable also if --just-symbols is given. --- gold/ChangeLog | 5 +++++ gold/arm.cc | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 0b17438b8b8..bcb534c407e 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Doug Kwan + + * arm.cc (Target_arm::do_make_elf_object): Allow executable also + if --just-symbols is given. + 2011-11-10 Doug Kwan PR gold/13362 diff --git a/gold/arm.cc b/gold/arm.cc index 3ee2224d631..72c3670d152 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -10008,7 +10008,10 @@ Target_arm::do_make_elf_object( off_t offset, const elfcpp::Ehdr<32, big_endian>& ehdr) { int et = ehdr.get_e_type(); - if (et == elfcpp::ET_REL) + // ET_EXEC files are valid input for --just-symbols/-R, + // and we treat them as relocatable objects. + if (et == elfcpp::ET_REL + || (et == elfcpp::ET_EXEC && input_file->just_symbols())) { Arm_relobj* obj = new Arm_relobj(name, input_file, offset, ehdr); -- 2.30.2