Bug 24420 - mudflap doesnt work with DSOs?
mudflap doesnt work with DSOs?
Status: RESOLVED WONTFIX
Product: gcc
Classification: Unclassified
Component: libmudflap
4.0.2
: P2 normal
: 4.9.0
Assigned To: Not yet assigned to anyone
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-18 04:52 UTC by Dan Hollis
Modified: 2013-11-10 05:47 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-10-18 14:16:38


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Hollis 2005-10-18 04:52:58 UTC
dlopen() on a -fmudflap -lmudflap'd DSO fails:
Sys_LoadDll(/home/wolf/.etwolf/etpro/qagame.mp.i386.so) failed:
"/usr/lib/libmudflap.so.0: undefined symbol: _start"

standalone binaries work fine.

$ ldd .etwolf/etpro/qagame.mp.i386.so
        linux-gate.so.1 =>  (0xffffe000)
        libmudflap.so.0 => /usr/lib/libmudflap.so.0 (0x55585000)
        libm.so.6 => /lib/libm.so.6 (0x5566c000)
        libc.so.6 => /lib/libc.so.6 (0x55691000)
        libdl.so.2 => /lib/libdl.so.2 (0x557ba000)
        /lib/ld-linux.so.2 (0x56555000)

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)
Comment 1 Andrew Pinski 2005-10-18 14:16:37 UTC
Confirmed.
Comment 2 Andrew Pinski 2005-10-18 14:18:21 UTC
extern char _end[];
extern char ENTRY_POINT[];


Maybe they should be made to be pointers and weak.
Comment 3 Dan Hollis 2005-10-19 01:26:00 UTC
a bug in gcc or libmudflap?
Comment 4 Andrew Pinski 2005-10-19 01:26:37 UTC
(In reply to comment #3)
> a bug in gcc or libmudflap?

libmudflap, I was copying and pasting from libmudflap sources.
Comment 5 Bastien ROUCARIES 2012-08-29 18:46:35 UTC
Bug is still here... Care to fix ?
Comment 6 Andrew Pinski 2013-11-10 05:47:12 UTC
fmudflap support has been removed.