Skip to content

orbisdev/bin/orbis-ld: final link failed: bad value #2

Description

@helloitu

Error in orbis-ld when trying compile basic orbisdev sample - /home/sexistduck/orbisdev/bin/orbis-ld: /tmp/crt0-5d7f10.o: relocation R_X86_64_PC32 against symbol `_init_env' can not be used when making a PIE object; recompile with -fPIE

already try compiling with -fPIE flag, won't work.... recompile all orbis things won't work too..

`clang  /home/sexistduck/orbisdev/crt0.s   build/timing.c.o build/main.c.o  -O3 -Wall -m64 -isysroot /home/sexistduck/orbisdev/usr -L. -Llib  -Wl,--gc-sections -Wl,-z -Wl,max-page-size=0x4000 -Wl,--dynamic-linker="/libexec/ld-elf.so.1" -Wl,-pie -Wl,--eh-frame-hdr -L/home/sexistduck/orbisdev/usr/lib -target x86_64-scei-ps4-elf -T /home/sexistduck/orbisdev/linker.x -lkernel_stub -lSceLibcInternal_stub -lSceSysmodule_stub -lSceSystemService_stub -lSceNet_stub -lSceUserService_stub -lScePigletv2VSH_stub -lSceVideoOut_stub -lSceGnmDriver_stub -lorbisGl2 -lorbis -lScePad_stub -lSceAudioOut_stub -lSceIme_stub  -o bin/homebrew.elf
/home/sexistduck/orbisdev/bin/orbis-ld: /tmp/crt0-5d7f10.o: relocation R_X86_64_PC32 against symbol `_init_env' can not be used when making a PIE object; recompile with -fPIE
/home/sexistduck/orbisdev/bin/orbis-ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/home/sexistduck/orbisdev/make//target/ps4_elf_sce.mk:12: recipe for target 'bin/homebrew.elf' failed
make: *** [bin/homebrew.elf] Error 1`

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions