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

libsepol: make reallocarray check more robust #439

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wbx-github
Copy link

Some cross-compiler toolchains dislike the usage of -o /dev/null and fail with: ld: final link failed: file truncated

As stdin and stdout is already redirected to /dev/null there is no need for gcc -o /dev/null.

This fixes an Buildroot autobuild failure for libsepol package: http://autobuild.buildroot.net/results/72b/72baaab4658254f4c5b3348298af1d5c891cacd6/

Some cross-compiler toolchains dislike the usage of -o /dev/null and fail
with: ld: final link failed: file truncated

As stdin and stdout is already redirected to /dev/null there is
no need for gcc -o /dev/null.

This fixes an Buildroot autobuild failure for libsepol package:
http://autobuild.buildroot.net/results/72b/72baaab4658254f4c5b3348298af1d5c891cacd6/

Signed-off-by: Waldemar Brodkorb <[email protected]>
@cgzones
Copy link
Contributor

cgzones commented Aug 24, 2024

It might be binutils bug, similar to the hppa one fixed here.

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.

2 participants