public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/20616] New: shared SH libgcc is exporting too many symbols
@ 2005-03-24 11:20 amylaar at gcc dot gnu dot org
  2005-03-24 12:12 ` [Bug target/20616] " amylaar at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2005-03-24 11:20 UTC (permalink / raw)
  To: gcc-bugs

The SH lib1funcs.asm contains numerous small functions that save code size
for a static link, but still are smaller than the PLT size for all
link-compatible subtargets (1).  Such functions
should never be exported from a shared libgcc.

(1) If, say, there is a function that is large for the SH3, it may make make
sense to export it from the SH3 libgcc.so, and if so, it also has to be in
an sh4-nofpu libgcc.so.  However, that is not a reason to put it into an SH4
libgcc.so, since SH4 libraries use a different ABI.  Functions that are
used/largish only on SH1 are of no concern, because this processor lacks some
instructions usesd for SH PIC code, hence there is no point exporting these
functions.  Likewise, since the SH2 has no MMU, functions that are only needed/
largish for SH2 stay out of libgcc.so for all OSes that need an MMU.
MMU, and hence can't support sh*k-elf shared libraries.

-- 
           Summary: shared SH libgcc is exporting too many symbols
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sh*-*-linux*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20616


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

* [Bug target/20616] shared SH libgcc is exporting too many symbols
  2005-03-24 11:20 [Bug target/20616] New: shared SH libgcc is exporting too many symbols amylaar at gcc dot gnu dot org
@ 2005-03-24 12:12 ` amylaar at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2005-03-24 12:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amylaar at gcc dot gnu dot org  2005-03-24 12:12 -------


*** This bug has been marked as a duplicate of 20617 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20616


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

end of thread, other threads:[~2005-03-24 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-24 11:20 [Bug target/20616] New: shared SH libgcc is exporting too many symbols amylaar at gcc dot gnu dot org
2005-03-24 12:12 ` [Bug target/20616] " amylaar at gcc dot gnu dot org

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