aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-11-25 04:32:36 +0000
committerDoug Kwan <dougkwan@google.com>2009-11-25 04:32:36 +0000
commit50aeb7d4316c838b8d3d41c2191a7ec2a0874f49 (patch)
tree19addef07371e4a76beedb50f46c2a96ba941688 /gold/options.h
parent51938283769ef9915b3106f48193ed42a3cea44e (diff)
downloadgdb-50aeb7d4316c838b8d3d41c2191a7ec2a0874f49.zip
gdb-50aeb7d4316c838b8d3d41c2191a7ec2a0874f49.tar.gz
gdb-50aeb7d4316c838b8d3d41c2191a7ec2a0874f49.tar.bz2
2009-11-25 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::Target_arm): Move method definition outside of class definition. Add code to handle --target1-rel, --target1-abs and --target2= options. (Target_arm::get_reloc_reloc_type): Change method to be non-static and const. (Target_arm::target1_is_rel_, Target_arm::target2_reloc_): New data member declaration. (Target_arm::Scan::local, Target_arm::Scan::global, Target_arm::Relocate::relocate, Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Adjust call to Target_arm::get_real_reloc_type. (Target_arm::get_real_reloc_type): Use command line options to determine real types of R_ARM_TARGET1 and R_ARM_TARGET2. * options.h (--target1-rel, --target1-abs, --target2): New ARM-only options.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 399c301..e17735a 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -884,6 +884,17 @@ class General_options
DEFINE_string(sysroot, options::TWO_DASHES, '\0', "",
N_("Set target system root directory"), N_("DIR"));
+ DEFINE_bool(target1_rel, options::TWO_DASHES, '\0', false,
+ N_("(ARM only) Force R_ARM_TARGET1 type to R_ARM_REL32"),
+ NULL);
+ DEFINE_bool(target1_abs, options::TWO_DASHES, '\0', false,
+ N_("(ARM only) Force R_ARM_TARGET1 type to R_ARM_ABS32"),
+ NULL);
+ DEFINE_enum(target2, options::TWO_DASHES, '\0', "default",
+ N_("(ARM only) Set R_ARM_TARGET2 relocation type"),
+ N_("[default, rel, abs, got-rel"),
+ {"default", "rel", "abs", "got-rel"});
+
DEFINE_bool(trace, options::TWO_DASHES, 't', false,
N_("Print the name of each input file"), NULL);