aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-01-11 15:57:59 +0000
committerTristan Gingold <gingold@adacore.com>2010-01-11 15:57:59 +0000
commit9a753de0adf48e4693c378823c484c7f0061d22f (patch)
tree49411d9adca5f81fa180a976d57f22cb8d2e4449 /bfd
parent42fa08916b972ce06b7bcdee8e0ce4171053cd89 (diff)
downloadgdb-9a753de0adf48e4693c378823c484c7f0061d22f.zip
gdb-9a753de0adf48e4693c378823c484c7f0061d22f.tar.gz
gdb-9a753de0adf48e4693c378823c484c7f0061d22f.tar.bz2
2010-01-11 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Add x86-64 relocation types.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/mach-o.h11
2 files changed, 15 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 22b26ab..5b15e56 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2010-01-11 Tristan Gingold <gingold@adacore.com>
+ * mach-o.h: Add x86-64 relocation types.
+
+2010-01-11 Tristan Gingold <gingold@adacore.com>
+
* mach-o.h (bfd_mach_o_backend_data): Add arch field.
(bfd_mach_o_set_arch_mach): New prototype.
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index bdd7632..d4ca600 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -396,6 +396,17 @@ bfd_mach_o_segment_command;
#define BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR 3
#define BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF 4
+/* X86-64 relocations. */
+#define BFD_MACH_O_X86_64_RELOC_UNSIGNED 0 /* Absolute addresses. */
+#define BFD_MACH_O_X86_64_RELOC_SIGNED 1 /* 32-bit disp. */
+#define BFD_MACH_O_X86_64_RELOC_BRANCH 2 /* 32-bit pcrel disp. */
+#define BFD_MACH_O_X86_64_RELOC_GOT_LOAD 3 /* Movq load of a GOT entry. */
+#define BFD_MACH_O_X86_64_RELOC_GOT 4 /* GOT reference. */
+#define BFD_MACH_O_X86_64_RELOC_SUBTRACTOR 5 /* Symbol difference. */
+#define BFD_MACH_O_X86_64_RELOC_SIGNED_1 6 /* 32-bit signed disp -1. */
+#define BFD_MACH_O_X86_64_RELOC_SIGNED_2 7 /* 32-bit signed disp -2. */
+#define BFD_MACH_O_X86_64_RELOC_SIGNED_4 8 /* 32-bit signed disp -4. */
+
/* Size of a relocation entry. */
#define BFD_MACH_O_RELENT_SIZE 8