Skip to content

Commit 367604a

Browse files
committed
arch/x86: Support picolibc with zefi
Disable the default startup file with -nostartfiles. Signed-off-by: Keith Packard <[email protected]>
1 parent c0e1268 commit 367604a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/zefi/zefi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def build_elf(elf_file, include_dirs):
117117
includes.extend(["-I", include_dir])
118118
cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes +
119119
["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
120-
"-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile])
120+
"-Wl,-nostdlib", "-nostartfiles", "-T", ldscript, "-o", "zefi.elf", cfile])
121121
verbose(" ".join(cmd))
122122
subprocess.run(cmd, check = True)
123123

0 commit comments

Comments
 (0)