Skip to content

Makefile: Remove -nostartfiles from LDFLAGS#129

Closed
celledge wants to merge 1 commit into
linux4sam:masterfrom
digitallumens:fix/nostartfiles
Closed

Makefile: Remove -nostartfiles from LDFLAGS#129
celledge wants to merge 1 commit into
linux4sam:masterfrom
digitallumens:fix/nostartfiles

Conversation

@celledge
Copy link
Copy Markdown

@celledge celledge commented Jun 8, 2021

Binutils linker ld does not support the flag -nostartfiles. This is interpreted as "-n -o startfiles" which fortunately has no impact on the build process. Removing -nostartfiles has no impact on the build.

Binutils 2.36 and later ld has improved flag parsing and throws an error if -nostartfiles is passed as an argument. Removing the flag fixes the problem.
Details on the Binutils ML: https://sourceware.org/pipermail/binutils/2021-June/116826.html

resolves #127

Binutils linker ld does not support the flag -nostartfiles. This is interpreted as "-n -o startfiles" which fortunately has no impact on the build process. Removing -nostartfiles has no impact on the build.

Binutils 2.36 and later ld has improved flag parsing and throws an error if -nostartfiles is passed as an argument. Removing the flag fixes the problem.
Details on the Binutils ML: https://sourceware.org/pipermail/binutils/2021-June/116826.html

resolves linux4sam#127
@ehristev
Copy link
Copy Markdown
Contributor

Applied with minor edits. Thanks !

@ehristev ehristev closed this Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

-nostartfiles is not an LDFLAG

2 participants