Comments (4)
So, please let's make sure that this gets implemented properly. This option is the option to ld
:
-e entry
--entry=entry
Use entry as the explicit symbol for beginning execution of your
program, rather than the default entry point. If there is no
symbol named entry, the linker will try to parse entry as a number,
and use that as the entry address (the number will be interpreted
in base 10; you may use a leading 0x for base 16, or a leading 0
for base 8).
Then apparently ld
will need to store it in .oj file format. Likely, in resolved form (sumbol -> address). And then tools like objcopy --output-format elf
will use it to fill in actual headers.
from ppci.
Initial steps are done here: c078ba4
TODO: add the --entry flag to ld.
from ppci.
Command line argument implemented here: 0043061
from ppci.
Command line argument implemented here: 0043061
Thanks! Confirming it works as expected. Closing.
from ppci.
Related Issues (20)
- ppci-cc: binary operators & | ^ and unary ~ & not supported in initializer constants
- ppci-cc: cannot take the address of a function static variable for initializing a function static variable
- ppci-ld: linker imports too many modules from the libraries
- ppci-cc: ++ and -- should work for floating point types HOT 2
- ppci-cc: conditional operator does not work with struct/union types
- pcci-cc: handling of array type of unknown size
- ppci-cc: initializing a global enum variable is not possible HOT 2
- ppci-cc: cannot compile combined struct assignment
- ppci-cc: switch/case statements should be better tested in the front-end HOT 1
- Implementation of sbrk HOT 9
- Tool to compile IR to machine code? HOT 1
- Hashing for IR Nodes HOT 2
- Translating to ppci assembly HOT 7
- Pass pointer HOT 1
- Compiling and running a simple GC
- Reading section failed HOT 1
- c parser crash in stdlib.h HOT 1
- Evaluation of constant expression in preprocessing directives may produce incorrect results
- Missing diagnostics: "invalid constant"
- ARM clarification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ppci.