This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/38607] AIX error messages about TOC during build
- From: "michael dot haubenwallner at salomon dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2010 13:44:59 -0000
- Subject: [Bug bootstrap/38607] AIX error messages about TOC during build
- References: <bug-38607-15635@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from michael dot haubenwallner at salomon dot at 2010-06-18 13:44 -------
(In reply to comment #13)
> #include <string>
> #include <map>
> void foo()
> {
> std::map<std::string, std::string> bar;
> }
Simply compiling this source code into an rtl-enabled shared library leads to
that linker warning, with both vanilla gcc-4.5.0 and gcc-4.4.4, configured to
use native as and ld each, on AIX5.3 TL8.
$ g++ -shared -Wl,-G -o libshare.so test.cpp
ld: 0711-768 WARNING: Object /tmp//ccIju3gQ.o, section 1, function *SNIP*:
The branch at address 0x618 is not followed by a recognized no-op
or TOC-reload instruction. The unrecognized instruction is 0x801F007C.
The warning isn't shown with the '-bsymbolic' linker flag, as this one
relocation is finally resolved locally and the subsequent 'nop' isn't needed.
But doing symbolic linking doesn't fit as workaround.
Thank you!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38607