Comments (4)
So why that's a "won't fix"? As a less experienced programmer I'm a bit confused and worried that such simple thing as declaring a constant before function may cause crashes in my apps. If it's that hard to fix, how does one protect from such unexpected behavior?
from amiga-gcc.
okay, so we had a discussion on slack about it and @michalsc told me that's dangerous only when not using default startup code. So not a problem for me... for now. ;)
from amiga-gcc.
Maybe a tiny fix, where const and any other read only data (which would normally go into .rodata section in ELF) is stored in HUNK_DATA section instead of HUNK_CODE? If necessary one could enforce variables/structures into code section anyway, using attribute((section()))...
Well, I myself can live with "wontfix", my issue was thought rather towards unexperienced developers who may waste hours trying to figure out why the code crashes without any apparent reason.
from amiga-gcc.
It's a good feature to put const data into the text (code) section, since it allows pcrel addressing.
For the rare cases providing an own startup code you can spend the few bytes to add a bra __entrypoint
as first insn.
Tiny effort for folks with own startup.
Way less effort for me.
Good!
from amiga-gcc.
Related Issues (20)
- Arch Linux "make update" Problem HOT 3
- Is it possible to compile Amiga Shared Libraries with this wonderfull compiler ? HOT 7
- Program will exit because of unwanted automatic LoadLibrary() with optional lib HOT 2
- aminet links and amitools on Debian and Ubuntu HOT 7
- gcc build fails on Fedora 39 HOT 1
- Unable to compile a Reaction snippet from the NDK3.2 HOT 6
- M3 Mac Book Pro Build - NDK 3.2 Patches Fail HOT 2
- gcc build fails in graphite-isl-ast-to-gimple.c HOT 2
- Question: Optional libraries... possible? HOT 2
- Checked in libamiga.a HOT 1
- @isoriano1968 - "make min" in a pristine repo (and sub project repos) seems to be OK. I'll open another issue for the oddities I noticed. HOT 1
- __divdi3 crashes on 68060 HOT 6
- gcc doesn't build on M1 macOS
- dlfcn.h is installed from clib2 but dl* functions do not exist on AmigaOS 3.x HOT 4
- gcc compile error: `isl_val_free` was not declared in this scope HOT 2
- Duplicate section has different contents HOT 17
- Update VASM (1.9a to 1.9f) HOT 3
- vbcc not building, missing a declaration of some function HOT 2
- Building amiga-gcc fails at making binutils on aarch64-linux-android HOT 1
- amiga-gcc 13.2 built executable exits with error code 121 HOT 8
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 amiga-gcc.