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

lds: remove note.gnu.build-id from most places, move to the end. #367

Closed
wants to merge 1 commit into from

Conversation

xnox
Copy link
Contributor

@xnox xnox commented Apr 23, 2021

.note.gnu.build-id was included in rodata sections on some
architectures, which get added to the elf .so & debug .so, but are not
copied into pe binary. Unless of course this section was embeeded
inside the .rodata.

Remove embedded copies of build-id, move build-id to the end of the
elf binaries. Note that stability and reproducibility of build-id note
is not needed, as most distributions strip & replace build-id with a
rebuilt one based on package name & version.

Fixes #366 (point 2)

Signed-off-by: Dimitri John Ledkov [email protected]

.note.gnu.build-id was included in rodata sections on some
architectures, which get added to the elf .so & debug .so, but are not
copied into pe binary. Unless of course this section was embeeded
inside the .rodata.

Remove embedded copies of build-id, move build-id to the end of the
elf binaries. Note that stability and reproducibility of build-id note
is not needed, as most distributions strip & replace build-id with a
rebuilt one based on package name & version.

Fixes rhboot#366 (point 2)

Signed-off-by: Dimitri John Ledkov <[email protected]>
@xnox xnox marked this pull request as draft April 23, 2021 21:57
@xnox
Copy link
Contributor Author

xnox commented Apr 23, 2021

Settings this to draft, as that's just a concept. Did not compiler or test boot this yet on all the arches.

In theory this change should not result in change of the pe binaries, or make them reproducible.

@frozencemetery
Copy link
Member

Closing this since it's been untouched for a year.

@xnox
Copy link
Contributor Author

xnox commented Jun 9, 2022

This is still needed, because without this change the builds of shim end up being non-reproducible which harms shim review.

@frozencemetery
Copy link
Member

That's fine, but it sat in draft for a year without changes. Per your comment: "Settings this to draft, as that's just a concept. Did not compiler or test boot this yet on all the arches.", so feel free to reopen if that changes or you need to run against CI.

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

Successfully merging this pull request may close these issues.

Significant problems with Aarch64 (and Arm?) builds
2 participants