This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2005 01:42:15 -0000
- Subject: [Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol
- References: <20050225230026.20218.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pluto at agmk dot net 2005-05-16 01:42 -------
(In reply to comment #16)
> I posted an updated patch
>
> http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00391.html
>
> It works for me on ia32, ia64 and x86_64.
with this version of the patch gcc builds fine on x86_64.
PR20218 testcase works, PR21382 testcase still fails.
# gcc-4.0.1-20050514 + patches for PR19664,PR20218.
(...)
.libs/IexBaseExc.o: In function `Iex::BaseExc::~BaseExc()':
IexBaseExc.cpp:(.text+0x59): undefined reference to
`std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::~basic_string()'
/usr/bin/ld: .libs/IexBaseExc.o: relocation R_X86_64_PC32 against `_ZNSsD1Ev'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
(...)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218