Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#37520 closed defect (fixed)

cctools: PowerPC assembler generates unsupported relocation type

Reported by: internetzel Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: cooljeanius (Eric Gallager)
Port: cctools

Description

When building optimized for the G5 CPU (mcpu=G5 which implies mpowerpc64, enabling the use of 64 bit registers and instructions even in 32 bit ABI) while targetting 32 bit ABI and switching on dynamic-no-pic the assembler generates relocations of type LO14 which have been seemingly deprecated with the dyld introduced with 10.4. The former dyld (part of the cctools project) supported and needed to distinguish between LO16 and LO14, but the later dyld doesn't need it anymore and unfortunately throws an unkown relocation type error.
I made a patch to the PowerPC assembler to always generate LO16 instead of LO14 when targetting 10.4 or later. That solved the problems I encountered when building the mozilla JavaScript library optimized for the G5.

Attachments (1)

patch_as_ppc.diff (1.6 KB) - added by internetzel 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by internetzel

Attachment: patch_as_ppc.diff added

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to jeremyhu@…
Summary: PowerPC assembler generates unsupported relocation typecctools: PowerPC assembler generates unsupported relocation type

Please remember to Cc the maintainer.

comment:2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.