summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/Makefile.inc
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/Makefile.inc
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/Makefile.inc')
-rw-r--r--sys/boot/common/Makefile.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/common/Makefile.inc b/sys/boot/common/Makefile.inc
index b2227c8..945a1a7 100644
--- a/sys/boot/common/Makefile.inc
+++ b/sys/boot/common/Makefile.inc
@@ -6,12 +6,13 @@ SRCS+= module.c panic.c
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
SRCS+= load_elf32.c load_elf64.c
+SRCS+= reloc_elf32.c reloc_elf64.c
.endif
.if ${MACHINE_ARCH} == "powerpc"
-SRCS+= load_elf32.c
+SRCS+= load_elf32.c reloc_elf32.c
.endif
.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "alpha"
-SRCS+= load_elf64.c
+SRCS+= load_elf64.c reloc_elf64.c
.endif
.if defined(LOADER_NET_SUPPORT)
OpenPOWER on IntegriCloud