Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Problem with Large Shared Libs?
@ 1998-09-11 16:24 Greg Lindahl
  1998-09-11 18:02 ` Richard Henderson
  0 siblings, 1 reply; 14+ messages in thread
From: Greg Lindahl @ 1998-09-11 16:24 UTC (permalink / raw)
  To: axp-list

> I wish I could find an authoritative statement of this .got limitation. The
> statically linked version of our prog has a .got section that is considerably
> larger than 64K,

The limitation seems to be in .o's, not in executables. There is an
offset with a limited number of bits.

> What is the bfd you refer to above?

If you download binutils, there is a Binary File Description (bfd)
library inside it.

-- g


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Problem with Large Shared Libs?
@ 1998-09-10 17:45 Greg Lindahl
  1998-09-11 14:50 ` Bret Orsburn
  0 siblings, 1 reply; 14+ messages in thread
From: Greg Lindahl @ 1998-09-10 17:45 UTC (permalink / raw)
  To: axp-list

> So, there is a size limit: A 64K limit on the .got section. What utility is
> telling you that? I just get a seg fault at run time.

ld complains about the .got limitation. From looking at the bfd
source, it looks like this is a hard limit.

> From what I've been able to make out, our program is trying to jump to an
> address that has not been adjusted to reflect the load address of the target.

That would be something I've never seen. Well, actually, it could be
what I currently have; gdb isn't being very helpful, and I have to
strip before linking because some of the stabs are longer than 4K,
another limit in the file formats.

As for your program, you're sure the same program works on another
platform? It pays to work to make sure the tools are guilty and not
your code.

-- g


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Problem with Large Shared Libs?
@ 1998-09-10 14:18 Greg Lindahl
  1998-09-10 17:27 ` Bret Orsburn
  0 siblings, 1 reply; 14+ messages in thread
From: Greg Lindahl @ 1998-09-10 14:18 UTC (permalink / raw)
  To: axp-list

> I can't speak for Greg, but here is the largest of the libs we're currently
> dealing with:

And in mine:

>  18 .got          00010230  000000000043ec98  000000000043ec98  0033ec98  2**3

My .got exceeds the maximum allowed size, because my usual compilation
technique for my big C++ library is to cat all the files together and
let it rip -- the savings on debugging symbols and compilation time is
immense. But the resulting .o has too many symbols for the modern
binutils (".got exceeds 64K blah blah...").

So now I'm trying to figure out if separate compilation breaks because
my code is broken, or egcs is broken.

The total size of my project is 300k lines. egcs couldn't compile it
due to egcs bugs until 1.0.2, but I have hopes that they're testing
well enough that future versions will stay unbroken.

Life is just different with big C++ programs.

-- g


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Problem with Large Shared Libs?
@ 1998-09-09 22:21 Greg Lindahl
  1998-09-10  7:36 ` Jochen Kuepper
  0 siblings, 1 reply; 14+ messages in thread
From: Greg Lindahl @ 1998-09-09 22:21 UTC (permalink / raw)
  To: axp-list

> Is there a known problem with large shared C++ libraries under Alpha Linux?
> (Redhat 5.0 and 5.1, egcs 1.0.2 and 1.1b, /lib/ld-2.0.7.so)

Um, if you could get large C++ programs to work at all under Alpha
Linux, you'd be ahead of me. At the least binutils has all kinds of
arbitrary limits, which are driving me crazy. But all that is before
runtime. I'm not sure if my current problems are due to the hacks to
get around the binutils problems, or a real g++ bug.

All my stuff works great under 4.2.

-- g


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Problem with Large Shared Libs?
@ 1998-09-09 20:30 Bret Orsburn
  0 siblings, 0 replies; 14+ messages in thread
From: Bret Orsburn @ 1998-09-09 20:30 UTC (permalink / raw)
  To: axp-list

Alpha Linux Wizards:

Is there a known problem with large shared C++ libraries under Alpha Linux?
(Redhat 5.0 and 5.1, egcs 1.0.2 and 1.1b, /lib/ld-2.0.7.so)

We've been seeing some runtime linkage errors involving very large libs, but I
haven't found a Smoking Gun yet....

----

	Bret Orsburn
	borsburn@codonics.com


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1998-09-11 19:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-11 16:24 Problem with Large Shared Libs? Greg Lindahl
1998-09-11 18:02 ` Richard Henderson
1998-09-11 18:44   ` Bret Orsburn
1998-09-11 19:04     ` Richard Henderson
1998-09-11 19:32       ` Bret Orsburn
  -- strict thread matches above, loose matches on Subject: below --
1998-09-10 17:45 Greg Lindahl
1998-09-11 14:50 ` Bret Orsburn
1998-09-10 14:18 Greg Lindahl
1998-09-10 17:27 ` Bret Orsburn
1998-09-11  7:03   ` Jochen Kuepper
1998-09-09 22:21 Greg Lindahl
1998-09-10  7:36 ` Jochen Kuepper
1998-09-10 13:56   ` Bret Orsburn
1998-09-09 20:30 Bret Orsburn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox