Re: Problem while Crosscompiling Ksymoops

Keith Owens (kaos@ocs.com.au)
Wed, 11 Jun 2003 15:41:29 +1000


On 10 Jun 2003 10:32:40 -0000,
"jairam nair" <jairamnair@rediffmail.com> wrote:
> Hi,
> I am trying to cross compile ksymoops-2.4.9 for Strong ARM.
>But i
>am getting a segmentation Fault. The error messages is as below.
>arm-linux-gcc io.o ksyms.o ksymoops.o map.o misc.o object.o
>oops.o
>re.o symbol.o -Dlinux -Wall -Wno-conversion -Waggregate-return
>-Wstrict-prototypes -Wmissing-prototypes
>-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
>-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
>-DDEF_OBJECTS=\"/lib/modules/*r/\"
>-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
>-I/skiff/local/include -L/skiff/local/lib -arm-linux-ld,-Bstatic
>-lbfd
>-liberty -arm-linux-ld,-Bdynamic -o ksymoops
>collect2: ld terminated with signal 11 [Segmentation fault],
>core dumped

The command line for the final link is wrong. It should contain

-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -o ksymoops

You replaced '-Wl' with '-arm-linux-ld', ld did not understand that and
got a segmentation fault trying to handle the unknown parameter.
Correct your command line, and log a problem against binutils that it
cannot cope with unexpected options.

> Can anybody tell me what should be given for DEF_MAP, since in
>the
>target machine there is no System.map file.

Without a system map, you are not going to get much of a decode. But
if that is what you want, add 'DEFMAP=' to the make command line.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/