Skip to content

Relocations R_PPC_TPREL16_LO and R_PPC_TPREL16_HA unsupported #116

Open

Description

I'm not sure if this is a wut thing or a devkitPPC thing, but in trying to port some code to wut I've encountered the following errors when creating the rpx file:

ERROR: Unsupported relocation type 72
ERROR: Unsupported relocation type 70
ERROR: fixRelocations failed.

I'm using the CMake toolchain like in the hello_world C++ CMake example. Is the issue above caused by something in my environment?

Activity

  1. ashquarky commented on Feb 11, 2020

    @ashquarky
    Contributor

    70 and 72 definitely don't seem like valid relocations - closest I can get is assuming those are hex 70 and 72, which gives R_PPC_EMB_RELST_LO and R_PPC_EMB_RELST_HA - both of which are actually unsupported in elf2rpl. Are you able to share the code you've been working on, some object files (like the .elf cmake generated), or anything else that causes the issue?
    If gcc actually generates relst relocations, we'll have to look at adding a special case or translation (or even a hack in devkitPPC).

  2. changed the title [-]Relocation type issue[/-] [+]Relocations R_PPC_EMB_RELST_LO and R_PPC_EMB_RELST_HA unsupported[/+] on May 11, 2020
  3. Seng-Jik commented on Apr 5, 2022

    @Seng-Jik

    link to wiiu-sdl2 will reproduce this error.

  4. GaryOderNichts commented on Oct 12, 2022

    @GaryOderNichts
    Contributor

    The title for this issue seems to be wrong.
    According to wut-tools, 70 and 72 is R_PPC_TPREL16_LO and R_PPC_TPREL16_HA.
    Those are for the Thread Local Storage ABI and not supported due to missing TLS support.

  5. changed the title [-]Relocations R_PPC_EMB_RELST_LO and R_PPC_EMB_RELST_HA unsupported[/-] [+]Relocations R_PPC_TPREL16_LO and R_PPC_TPREL16_HA unsupported[/+] on Jul 13, 2023
  6. Wohlstand commented on Nov 14, 2023

    @Wohlstand

    On my end there are different errors happen:
    R_PPC_PLTREL24 (18) and R_PPC_LOCAL24PC (23)

    ERROR: Unsupported relocation type 18
    ERROR: Unsupported relocation type 23
    ERROR: fixRelocations failed.
    

    And ye, I also trying to link the SDL2 thing. Anyway, in addition to that, I do have a large pile of other libraries that are built from the source. I attempted to disable the -fPIC on all of them, but seems that took no effect... 🤔

  7. GaryOderNichts commented on Nov 14, 2023

    @GaryOderNichts
    Contributor

    On my end there are different errors happen: R_PPC_PLTREL24 (18) and R_PPC_LOCAL24PC (23)

    ERROR: Unsupported relocation type 18
    ERROR: Unsupported relocation type 23
    ERROR: fixRelocations failed.
    

    And ye, I also trying to link the SDL2 thing. Anyway, in addition to that, I do have a large pile of other libraries that are built from the source. I attempted to disable the -fPIC on all of them, but seems that took no effect... 🤔

    These relocations are used for position-independent code and are unrelated to TLS and this issue.
    It sounds like one of the libraries in your "pile of other libraries" is built using position-independent code. Try a minimal test case only using packages from the pacman repos and see if the issue persists.

  8. Wohlstand commented on Nov 14, 2023

    @Wohlstand

    Ye, just now I found the last library where -fPIC was been enabled, and I disabled it, and thing got been built finally. Before that I tried one of exapmles from samples/ sub-directory of this repo, and it successfully built and linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions