Giter VIP home page Giter VIP logo

Comments (7)

mheyer32 avatar mheyer32 commented on August 11, 2024

Removing am_mapamiga.s from the code and just replacing it with the c function in am_map.c didn't help and just shifted the problem somewhere else.

Be aware, DoomAttack is not compiled with -fbaserel (much of it is implemented in assembly and all of them use absolute symbol references)

from amiga-gcc.

bebbo avatar bebbo commented on August 11, 2024

well, the binutils linker wants all code sections named .text

from amiga-gcc.

mheyer32 avatar mheyer32 commented on August 11, 2024

Confirmed. I moved all assembly files' section directives to .text and it passed the linking stage. But I could swear it already linked before that.

On a sidenote, would it be possible to allow sections with non-gcc names? It would relieve some of the linker pressure to stuff everything together in -msmall-code and -fbaserel modes. The programmer had more control over which code/data needs to go together and which code can be in separate sections (via long jumps). Obviously I didn't think this through yet, but sounds desirable.

from amiga-gcc.

bebbo avatar bebbo commented on August 11, 2024

I just reactivated the amiga hunk format. The aout format only supports 2 real sections, one .text and one .data section. Even the .bss is in fact only an extension to .data.

With amiga hunk format an unlimited count of sections should work with one limitation: Only one baserel .data section is allowed.

from amiga-gcc.

mheyer32 avatar mheyer32 commented on August 11, 2024

Is there anything you ask me to test?

from amiga-gcc.

bebbo avatar bebbo commented on August 11, 2024

I am trying to create a minimal problem...
... not enough time this week.

from amiga-gcc.

bebbo avatar bebbo commented on August 11, 2024

Ha, it's not a binutil issue, it's section naming issue:

the instruction is:

	jra _AM_drawFline 

pc relative jumps between different sections are impossible.

from amiga-gcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.