Skip to content

Commit 6d314dc

Browse files
committed
arch/x86: Support picolibc with zefi
Disable the default startup file with -nostartfiles. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 553fc84 commit 6d314dc

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)