Merge pull request #251 from Dennisbonke/master

sysdeps/managarm: Add Scrt1 for x86_64
This commit is contained in:
Alexander van der Grinten 2021-05-02 19:53:22 +02:00 committed by GitHub
commit 81d17ab95b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -101,5 +101,16 @@ if not headers_only
install: true,
install_dir: get_option('libdir')
)
if host_machine.cpu_family() == 'x86_64'
custom_target('Scrt1',
build_by_default: true,
command: c_compiler.cmd_array() + ['-c', '-o', '@OUTPUT@', '@INPUT@'],
input: 'x86_64/crt-src/Scrt1.S',
output: 'Scrt1.o',
install: true,
install_dir: get_option('libdir')
)
endif
endif

View file

@ -0,0 +1,5 @@
.section .text
.global _start
_start:
lea main(%rip), %rdi
call __mlibc_entry