Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.os.linux.start_pie is missing support for powerpc64le #20305

Open
alexrp opened this issue Jun 15, 2024 · 3 comments
Open

std.os.linux.start_pie is missing support for powerpc64le #20305

alexrp opened this issue Jun 15, 2024 · 3 comments
Labels
arch-powerpc enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@alexrp
Copy link
Contributor

alexrp commented Jun 15, 2024

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

cat main.zig
pub fn main() void {}zig build-exe main.zig -fPIE -target powerpc64-linux
/home/alexrp/zig/0.13.0/files/lib/std/os/linux/start_pie.zig:19:13: error: Missing R_RELATIVE definition for this target
    else => @compileError("Missing R_RELATIVE definition for this target"),
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    relocate: /home/alexrp/zig/0.13.0/files/lib/std/os/linux/start_pie.zig:108:31
    posixCallMainAndExit: /home/alexrp/zig/0.13.0/files/lib/std/start.zig:411:29
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
/home/alexrp/zig/0.13.0/files/lib/std/os/linux/start_pie.zig:67:13: error: PIE startup is not yet supported for this target!
            @compileError("PIE startup is not yet supported for this target!");
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expected Behavior

No compile error.

@alexrp alexrp added the bug Observed behavior contradicts documented or intended behavior label Jun 15, 2024
@Vexu Vexu added enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library. arch-powerpc and removed bug Observed behavior contradicts documented or intended behavior labels Jun 15, 2024
@Vexu Vexu added this to the 1.1.0 milestone Jun 15, 2024
@alexrp
Copy link
Contributor Author

alexrp commented Jun 16, 2024

@Vexu should I file individual issues for other architectures affected by this (e.g. MIPS), or should we just have this one cover them all?

@Vexu
Copy link
Member

Vexu commented Jun 16, 2024

I think it's fine to wait until someone runs into the issue.

@alexrp
Copy link
Contributor Author

alexrp commented Jun 16, 2024

Well, I ran into it for PPC and MIPS personally, hence the question. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-powerpc enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

No branches or pull requests

2 participants