public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* Patches to build a shared ELF libbfd.so
@ 1995-03-06  6:15 H.J. Lu
  1995-03-06  6:55 ` Mike Meissner
  1995-03-06  7:42 ` Ian Lance Taylor
  0 siblings, 2 replies; 4+ messages in thread
From: H.J. Lu @ 1995-03-06  6:15 UTC (permalink / raw)
  To: gas2; +Cc: Ian Lance Taylor

Hi,

I have a patch for gas-950304 to build a shared ELF library,
libbfd.so, which contains both libbfd and libopcode. It cuts
down the sizes of each ELF binary by several hundred Ks on x86.

But my patch is just a hack since there is no shared library
support in binutils. If anyone is interested, I will post
my patch. BTW, I think it is a very good test for the ELF
support in binutils if you use the binutils to assembler
and link itself.


-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com


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

* Patches to build a shared ELF libbfd.so
  1995-03-06  6:15 Patches to build a shared ELF libbfd.so H.J. Lu
@ 1995-03-06  6:55 ` Mike Meissner
  1995-03-06  7:04   ` H.J. Lu
  1995-03-06  7:42 ` Ian Lance Taylor
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Meissner @ 1995-03-06  6:55 UTC (permalink / raw)
  To: hjl; +Cc: gas2, ian

| Hi,
| 
| I have a patch for gas-950304 to build a shared ELF library,
| libbfd.so, which contains both libbfd and libopcode. It cuts
| down the sizes of each ELF binary by several hundred Ks on x86.
| 
| But my patch is just a hack since there is no shared library
| support in binutils. If anyone is interested, I will post
| my patch. BTW, I think it is a very good test for the ELF
| support in binutils if you use the binutils to assembler
| and link itself.

As I recall, this was discussed last summer.  The problem with making
bfd a shared library is that the interfaces aren't as cut and dried as
one would like.  For example, when I was at OSF, we tried to shared
gdb's bfd with gas/ld in the OSF ODE build evironment.  However,
because we had not rev'ed GDB for awhile, the calling sequence for the
disassembling functions had changed, even though the name was the
same.  In the interest of expediency, I kept gdb's version of bfd in
the tree along with the assembler and linkers.

-- 
Michael Meissner, Cygnus Support (East Coast)
Suite 105, 48 Grove Street, Somerville, MA 02144, USA
meissner@cygnus.com,	617-629-3016 (office),	617-629-3010 (fax)


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

* Re: Patches to build a shared ELF libbfd.so
  1995-03-06  6:55 ` Mike Meissner
@ 1995-03-06  7:04   ` H.J. Lu
  0 siblings, 0 replies; 4+ messages in thread
From: H.J. Lu @ 1995-03-06  7:04 UTC (permalink / raw)
  To: Mike Meissner; +Cc: gas2, ian

> 
> | Hi,
> | 
> | I have a patch for gas-950304 to build a shared ELF library,
> | libbfd.so, which contains both libbfd and libopcode. It cuts
> | down the sizes of each ELF binary by several hundred Ks on x86.
> | 
> | But my patch is just a hack since there is no shared library
> | support in binutils. If anyone is interested, I will post
> | my patch. BTW, I think it is a very good test for the ELF
> | support in binutils if you use the binutils to assembler
> | and link itself.
> 
> As I recall, this was discussed last summer.  The problem with making
> bfd a shared library is that the interfaces aren't as cut and dried as

That is one reason why I said "there is no shared library support in
binutils." :-(.

> one would like.  For example, when I was at OSF, we tried to shared
> gdb's bfd with gas/ld in the OSF ODE build evironment.  However,
> because we had not rev'ed GDB for awhile, the calling sequence for the
> disassembling functions had changed, even though the name was the
> same.  In the interest of expediency, I kept gdb's version of bfd in
> the tree along with the assembler and linkers.
> 

Drop me a line if you are interested in fixing it. Hint: proper use of
bfd/VERSION and -soname.


-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com


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

* Re: Patches to build a shared ELF libbfd.so
  1995-03-06  6:15 Patches to build a shared ELF libbfd.so H.J. Lu
  1995-03-06  6:55 ` Mike Meissner
@ 1995-03-06  7:42 ` Ian Lance Taylor
  1 sibling, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 1995-03-06  7:42 UTC (permalink / raw)
  To: hjl; +Cc: gas2

   From: hjl@nynexst.com (H.J. Lu)
   Date: Sun, 5 Mar 95 11:01:29 EST

   BTW, I think it is a very good test for the ELF
   support in binutils if you use the binutils to assembler
   and link itself.

These are part of the standard tests of the assembler and linker,
incidentally, for those who are interested in running them.

In gas, do ``make bootstrap''.  CC must run gcc.  This runs a three
stage bootstrap.

In ld, do ``make check''.  You must have DejaGnu installed.  This runs
various tests, including three stage bootstraps using various
different options, and several shared library checks.

I run these tests regularly on ELF, and other, systems.

Ian


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

end of thread, other threads:[~1995-03-06  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-06  6:15 Patches to build a shared ELF libbfd.so H.J. Lu
1995-03-06  6:55 ` Mike Meissner
1995-03-06  7:04   ` H.J. Lu
1995-03-06  7:42 ` Ian Lance Taylor

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).