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

fix non-zero VMA and LMA in .debug_info and .debug_abbrev elf sections #148

Closed
graydon opened this issue Aug 12, 2010 · 1 comment
Closed

Comments

@graydon
Copy link
Contributor

graydon commented Aug 12, 2010

Apparently the GNU tools expect VMA and LMA of .debug_info / .debug_abbrev to be zero. I'm not sure why we haven't seen this yet, but tromey reports this is crashing his copies of readelf and gdb. Odd!

@graydon
Copy link
Contributor Author

graydon commented Aug 13, 2010

Zero LMA/VMA of debug sections in elf. Closed by 8149bb1.

mbrubeck pushed a commit to mbrubeck/rust that referenced this issue Oct 17, 2011
oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Correctly state that type parameters are `Sized` by default.
bors added a commit that referenced this issue Dec 14, 2019
…r=Amanieu

SGX: Change ELF entrypoint

This fixes [rust-sgx issue #148](fortanix/rust-sgx#148).

A new entry point is created for the ELF file generated by `rustc`, separate from the enclave entry point. When the ELF file is executed as a Linux binary, the error message below is written to stderr.

> Error: This file is an SGX enclave which cannot be executed as a standard Linux binary.
> See the installation guide at https://edp.fortanix.com/docs/installation/guide/ on how to use 'cargo run' or follow the steps at https://edp.fortanix.com/docs/tasks/deployment/ for manual deployment.

When the ELF file is converted to an SGXS using `elf2sgxs`, the old entry point is still set as the enclave entry point. In a future pull request in the rust-sgx repository, `elf2sgxs` will be modified to remove the code in the ELF entry point, since this code is not needed in the enclave.
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
…ft-fe081d3

Bump cranelift from `28fb8e1` to `fe081d3`
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
…c-alloc-0.2

Update static-alloc requirement from 0.1 to 0.2
antoyo added a commit to antoyo/rust that referenced this issue Jun 7, 2022
This issue was closed.
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