diff options
author | Ralf Rösch <ralf.roesch@rw-gmbh.de> | 2010-04-14 09:45:37 -0700 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-14 09:45:37 -0700 |
commit | 8597da193474673a3caeffcf3d134bb2ed57aa4d (patch) | |
tree | 38cfa446ac9f8672d4b34274e80d715a32562b2a | |
parent | 60f659f9d998128d6db817888ab35a9de248be68 (diff) | |
download | busybox-w32-8597da193474673a3caeffcf3d134bb2ed57aa4d.tar.gz busybox-w32-8597da193474673a3caeffcf3d134bb2ed57aa4d.tar.bz2 busybox-w32-8597da193474673a3caeffcf3d134bb2ed57aa4d.zip |
modutils-24: [mips] modutlis-24 segfault fix for 2.4 kernel modules
handling DWARF sections solves the problem.
This seems to be a long outstanding bug:
http://permalink.gmane.org/gmane.linux.busybox/4533
http://www.linux-mips.org/archives/linux-mips/2004-08/msg00072.html
Signed-off-by: Ralf Rösch <ralf.roesch@rw-gmbh.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | modutils/modutils-24.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c index 05c1bf2b2..5c1611c29 100644 --- a/modutils/modutils-24.c +++ b/modutils/modutils-24.c | |||
@@ -3285,6 +3285,9 @@ static struct obj_file *obj_load(char *image, size_t image_size, int loadprogbit | |||
3285 | case SHT_SYMTAB: | 3285 | case SHT_SYMTAB: |
3286 | case SHT_STRTAB: | 3286 | case SHT_STRTAB: |
3287 | case SHT_RELM: | 3287 | case SHT_RELM: |
3288 | #if defined(__mips__) | ||
3289 | case SHT_MIPS_DWARF: | ||
3290 | #endif | ||
3288 | sec->contents = NULL; | 3291 | sec->contents = NULL; |
3289 | if (sec->header.sh_size > 0) { | 3292 | if (sec->header.sh_size > 0) { |
3290 | sec->contents = xmalloc(sec->header.sh_size); | 3293 | sec->contents = xmalloc(sec->header.sh_size); |