Wireshark-bugs: [Wireshark-bugs] [Bug 4346] TOC relocation error on PPC64

Date: Wed, 16 Mar 2011 07:46:07 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4346

--- Comment #4 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2011-03-16 07:46:04 PDT ---
(In reply to comment #3)
> I met this problem when build wireshark 1.4.4 on ppc64 platform against Sles10
> (libgcc 4.1.2), but build on ppc64 against Sles11 (libgcc 4.3.4) has no
> problem.
> I wonder if there is a workaround to fix the problem now? Or do I still need to
> follow comment #2? Thanks.

It looks like you should be able to work around this now by upgrading gcc to
version 4.6.0, available from: http://gcc.gnu.org/.

>From http://gcc.gnu.org/gcc-4.6/changes.html:
PowerPC64 GNU/Linux support for applications requiring a large TOC section has
been improved. A new command-line option, -mcmodel=MODEL, controls this
feature; valid values for MODEL are small, medium, or large.

Note that you may also need to upgrade binutils as well.  The latest available
version of binutils is currently 2.21.  It is available from:
http://ftp.gnu.org/gnu/binutils/.

Reference: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41644#c11.

Let us know how this works out for you.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.