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