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

Linker Error related to PIE #2

Open
nstarke opened this issue May 21, 2021 · 0 comments
Open

Linker Error related to PIE #2

nstarke opened this issue May 21, 2021 · 0 comments

Comments

@nstarke
Copy link

nstarke commented May 21, 2021

Hello,

I am attempting to build xnu-qemu-arm64 from the repository diff file and I am running into a linker error:

[...]
  BUILD   pc-bios/optionrom/multiboot.img
ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
make[1]: *** [Makefile:52: multiboot.img] Error 1
make: *** [Makefile:576: pc-bios/optionrom/all] Error 2
make: *** Waiting for unfinished jobs....

This is on ubuntu 21.04 with the following ld version information:

$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.36.1

The linker error is caused by something related to the optionrom directory (pc-bios/optionrom/Makefile).

I don't think the optionroms are necessary to get this project working, though I definitely could be wrong. I am preparing a pull request with an updated diff that disables compiling of the optionroms. I did not see a flag in ./configure that would enable me to do this.

Pull request forthcoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant