ushitora-anqou / aqcc Goto Github PK
View Code? Open in Web Editor NEWYet another tiny tiny self-hosted C compiler, assembler, linker and standard C library.
License: MIT License
Yet another tiny tiny self-hosted C compiler, assembler, linker and standard C library.
License: MIT License
looks like forget initial obj->rela_text to NULL.
https://github.com/ushitora-anqou/aqcc/blob/master/ld/link.c
obj->shdr = obj->symtab = obj->strtab = NULL; -> obj->shdr = obj->symtab = obj->strtab = obj->rela_text =NULL;
if (obj->rela_text == NULL && strcmp(name, ".rela.text") == 0) {
obj->rela_text = offset;
obj->nrela_text = size / 24;
}
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
The following error occurred:
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400144
/tmp/ccs55tqL.o: In function exit': /home/xxxx/compiler/aqcc/ld/stdlib.c:113: undefined reference to
syscall'
/tmp/ccs55tqL.o: In function brk': /home/xxxx/compiler/aqcc/ld/stdlib.c:120: undefined reference to
syscall'
/tmp/ccs55tqL.o: In function open': /home/xxxx/compiler/aqcc/ld/stdlib.c:150: undefined reference to
syscall'
/tmp/ccs55tqL.o: In function close': /home/xxxx/compiler/aqcc/ld/stdlib.c:153: undefined reference to
syscall'
/tmp/ccs55tqL.o: In function write': /home/xxxx/compiler/aqcc/ld/stdlib.c:161: undefined reference to
syscall'
/tmp/ccs55tqL.o:/home/xxxx/compiler/aqcc/ld/stdlib.c:166: more undefined references to `syscall' follow
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target 'ld' failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.