[parisc-linux] /usr/bin/ld: can not size stub section: Bad value

John David Anglin dave@hiauly1.hia.nrc.ca
Sat, 5 Oct 2002 12:22:02 -0400 (EDT)


> /usr/bin/ld: can not size stub section: Bad value
> /usr/bin/ld: BFD 2.12.90.0.14 20020627 Debian GNU/Linux internal error,

I presume that you are using debian gcc 3.0.4.  There are known problems with
branches.  This error is usually caused by a call branch being too far from
the start of the module, or function if using -ffunction-sections.
Compiling with gcc 3.2 or later may help.

> Is this a bug or faq today?

Both.  There are still some problems in this area that haven't been resolved.
However, the situation is better in 3.2 than 3.0.4.  kde30/Qt is one package
where there are still problems.

> It is while building a tiny prog linked with shared lib, 'may be' this as to
> do with the way the shared libs are build i.e short pic vs long pic?

I can't remember offhand when this was changed but there is no difference
between short and long pic in 3.2 and later.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)