bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help linking ipfilter package.


From: Nick Clifton
Subject: Re: Help linking ipfilter package.
Date: Thu, 13 Nov 2003 16:09:42 +0000
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux)

Hi Mario,

>     I'm trying to link ipfilter on Solaris 5.8 and it comes back
> with a funky linker error.  I don't know jack about mapfiles, and
> hence I'm asking for help!

>     with the command
>
> gcc -m64 -mcmodel=medlow /tmp/conftest.c -o /tmp/64.out
>
>     which fails with
>
> /usr/lib/ld/sparcv9/map.below4G: file not recognized: File format not 
> recognized
> collect2: ld returned 1 exit status

Could you post the output of adding "-v" to that gcc command line.  ie
it would help to see the exact command line that GCC is using to
invoke collect2.


>     Now the file in question seems perfectly innocent, but it's copyright to
> sun so I won't post it.  Essentially it's just some comments and the line
>
> text = V0x80000000;
>
>     And so I'm extremely confused as to what the problem is.  Does anybody
> have any suggestions?

It looks like this "map.below4G" file is supposed to be a linker
script, but that either the linker thinks that it is an object file or
else it thinks that it is a script, but not in a scripting language
that it understands.

The former theory would seem to imply that a -T switch is missing from
the linker command line, the latter theory that this map.below4G file
is in a syntax specific to Sun's linker and that it should not be
present on the command line to the GNU linker at all.  Or possibly
that you should be using Sun's linker and not the GNU linker.

Cheers
        Nick
        





reply via email to

[Prev in Thread] Current Thread [Next in Thread]