summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/reloc_elf64.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2004-08-28 23:03:05 +0000
committeriedowse <iedowse@FreeBSD.org>2004-08-28 23:03:05 +0000
commit95dd728f5ca86b8ad7346a25bb7375eac27169e9 (patch)
treea007fb362198e8ded37c0b9b88dfba7840982665 /sys/boot/common/reloc_elf64.c
parenta5fd03708571a88d49c5fb9df27bac2ccace8656 (diff)
downloadFreeBSD-src-95dd728f5ca86b8ad7346a25bb7375eac27169e9.zip
FreeBSD-src-95dd728f5ca86b8ad7346a25bb7375eac27169e9.tar.gz
Separate out the ELF relocation code from the ELF loader, and add
better relocation support for the amd64 and i386 platforms. This should not result in any change in functionality, but moves a step towards supporting the relocatable object file modules on amd64. The same hack/trick as load_elf*.c uses is used here to simultaneously support both elf32 and elf64 on amd64 and i386.
Diffstat (limited to 'sys/boot/common/reloc_elf64.c')
-rw-r--r--sys/boot/common/reloc_elf64.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/boot/common/reloc_elf64.c b/sys/boot/common/reloc_elf64.c
new file mode 100644
index 0000000..c8dcf2a
--- /dev/null
+++ b/sys/boot/common/reloc_elf64.c
@@ -0,0 +1,6 @@
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
+#define __ELF_WORD_SIZE 64
+
+#include "reloc_elf.c"
OpenPOWER on IntegriCloud