public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* ELF shared library status.
@ 1994-07-16  6:15 Eric Youngdale
  1994-07-16  9:50 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Youngdale @ 1994-07-16  6:15 UTC (permalink / raw)
  To: hlu; +Cc: gas2

	OK, last night I finally got it working.  I was able to use the GNU
linker to generate an ELF shared library (the iBCS2 ELF libc for linux), and it
actually works for everything I have thrown at it so far, including emacs and a
couple of simpleminded X applications.  I have already sent Ian the diffs, and
when he gets some time (hopefully fairly soon) they will be integrated into the
source tree at cygnus.

	One very interesting thing is that the library generated by GNU ld is
about 33Kb smaller than the one generated by the SVr4 linker.  I think the main
reason for this is that the SVr4 linker has been generating a unified symbol
table, and when you strip this binary it cannot remove the local symbols.
The GNU linker has been generating two sets of symbol tables, and the .dynsym
section only contains that which is needed for dynamic linking.  Thus when you
strip it, you end up with something that is much closer to the minimum size.

	There is one problem area - the debugging information needs some work
in the relocations department - if you try and load the shared library into the
debugger you get some nonsense messages from gdb.  In principle this should not
be that difficult to fix, and will only be an issue when you try and directly
debug a shared library.

	There are a few new rough edges with some of the binutils - these
should also be relatively easy to iron out.

	I have uploaded diffs (against the 940707 snapshot at cygnus) to tsx-11
in pub/linux/packages/GCC/private/dll/elflib??.diff or something close to that
(I cannot remember the exact name).  The only thing that is missing from this
file are the patches to gas to accept PIC assembly operands (Ken has the
patches, and will hopefully be integrated soon).  So far, every test that I
have run with the linker has used .o files generated by the SVr4 assembler - I
only want to test/debug one tool at a time, thank you.

	I will be away from my computer most of the weekend :-).

-Eric


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

* Re: ELF shared library status.
  1994-07-16  6:15 ELF shared library status Eric Youngdale
@ 1994-07-16  9:50 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 1994-07-16  9:50 UTC (permalink / raw)
  To: ericy; +Cc: hlu, linux-activists, gas2

This is important progress, because ELF is the format we want to use
in the GNU system, and shared libraries are a vital feature for the
system.


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

end of thread, other threads:[~1994-07-16  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-07-16  6:15 ELF shared library status Eric Youngdale
1994-07-16  9:50 ` Richard Stallman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).