aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-09 11:36:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-09 11:36:17 +0000
commitf3aa4a8ec5c86ceef9a82647a47f6ebec2766747 (patch)
tree22c9e52d2a6631999106602f18f12a7ac2ea8e2f
parent4579e9c1c89d844615e800b6c23f7558c366154f (diff)
downloadbusybox-w32-f3aa4a8ec5c86ceef9a82647a47f6ebec2766747.tar.gz
busybox-w32-f3aa4a8ec5c86ceef9a82647a47f6ebec2766747.tar.bz2
busybox-w32-f3aa4a8ec5c86ceef9a82647a47f6ebec2766747.zip
insmod: fix build warnings. By Cristian Ionescu-Idbohrn
-rw-r--r--modutils/insmod.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 6274a8d15..f6dcbe8a8 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -840,14 +840,23 @@ arch_apply_relocation(struct obj_file *f,
840 struct obj_symbol *sym, 840 struct obj_symbol *sym,
841 ElfW(RelM) *rel, ElfW(Addr) v) 841 ElfW(RelM) *rel, ElfW(Addr) v)
842{ 842{
843#if defined(__arm__) || defined(__i386__) || defined(__mc68000__) \
844 || defined(__sh__) || defined(__s390__)
843 struct arch_file *ifile = (struct arch_file *) f; 845 struct arch_file *ifile = (struct arch_file *) f;
846#endif
844 enum obj_reloc ret = obj_reloc_ok; 847 enum obj_reloc ret = obj_reloc_ok;
845 ElfW(Addr) *loc = (ElfW(Addr) *) (targsec->contents + rel->r_offset); 848 ElfW(Addr) *loc = (ElfW(Addr) *) (targsec->contents + rel->r_offset);
849#if defined(__arm__) || defined(__H8300H__) || defined(__H8300S__) \
850 || defined(__i386__) || defined(__mc68000__) || defined(__microblaze__) \
851 || defined(__mips__) || defined(__nios2__) || defined(__powerpc__) \
852 || defined(__s390__) || defined(__sh__) || defined(__x86_64__)
846 ElfW(Addr) dot = targsec->header.sh_addr + rel->r_offset; 853 ElfW(Addr) dot = targsec->header.sh_addr + rel->r_offset;
854#endif
847#if defined(USE_GOT_ENTRIES) || defined(USE_PLT_ENTRIES) 855#if defined(USE_GOT_ENTRIES) || defined(USE_PLT_ENTRIES)
848 struct arch_symbol *isym = (struct arch_symbol *) sym; 856 struct arch_symbol *isym = (struct arch_symbol *) sym;
849#endif 857#endif
850#if defined(__arm__) || defined(__i386__) || defined(__mc68000__) || defined(__sh__) || defined(__s390__) 858#if defined(__arm__) || defined(__i386__) || defined(__mc68000__) \
859 || defined(__sh__) || defined(__s390__)
851#if defined(USE_GOT_ENTRIES) 860#if defined(USE_GOT_ENTRIES)
852 ElfW(Addr) got = ifile->got ? ifile->got->header.sh_addr : 0; 861 ElfW(Addr) got = ifile->got ? ifile->got->header.sh_addr : 0;
853#endif 862#endif