-
Notifications
You must be signed in to change notification settings - Fork 69
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
gas / binutils 2.27 generates invalid ELF files #76
Comments
thanks for notifying us of this issue. does this commit 1952975 fix it for you ? (it is in branch binutils_chdr, not yet master in case that matters.)
most likely, but there could be new regressions so for the time being i opted to backport the patch upstreamed in https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=patch;h=88739f776b733b0b84600b283417f862a010bb5d as it was straight-forward. |
i'm adding @tlaurion to the CC list, as he seems to be working on this. |
We then switched to musl-cross-make which resolved the issue. Project is staling though. |
are you refering to musl-cross-make or another project? in case of mcm, i'm aware from IRC conversations that @richfelker is working on it and has a couple commits in the queue. it should hopefully get updated soon with fresh gcc versions and some patches for fdpic toolchains. |
The Heads project is having problems building musl-cross on modern systems due to an incompatible change in libelf. linuxboot/heads#618 (comment)
The problem is also described here: https://wiki.gentoo.org/wiki/Binutils_2.32_upgrade_notes/elfutils_0.175:_unable_to_initialize_decompress_status_for_section_.debug_info
The symptom that we encounter is that
musl-cross-gas
produces invalid ELF files for the Linux kernel's.S
assembly programs, which are corrupted when they are processed by the ORC unwinder linked against the system's libelf:I think moving musl-cross to binutils 2.32 (from the current 2.27) would fix this.
The text was updated successfully, but these errors were encountered: