English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 23 December 2017, 13:43   #21
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
This is not a valid hunk-format object file, IMHO.

The output looks like HUNK_DEBUG is used as a section, with its own name ".stab" (HUNK_NAME) and relocations (HUNK_RELOC32). This is illegal. There are only three types of sections in AmigaDOS: HUNK_CODE, HUNK_DATA and HUNK_BSS.

HUNK_DEBUG is used as an additional hunk for one of these three sections, like HUNK_SYMBOL.

Also refer to "The Amiga Guru Book", chapter 22.1. The structure of a section/segment is clearly defined as a sequence of the following hunks:
Code:
HUNK_NAME (optional)
HUNK_CODE | HUNK_DATA | HUNK_BSS
HUNK_RELOC... (not in BSS, optional)
HUNK_EXT (only in object files, optional)
HUNK_SYMBOL (optional)
HUNK_DEBUG (optional)
HUNK_END
phx is offline  
Old 23 December 2017, 15:18   #22
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
oh, ok. I make a link to your answer in the gcc6 thread
emufan is offline  
Old 26 December 2017, 22:49   #23
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by emufan View Post
gcc6 supports/creates now amiga hunk format.
To be more precise:
* my binutils-2.14 fork (https://github.com/bebbo/amigaos-binutils-2.14 branch: master) is creating amiga hunk objects now. You may still use an older version (branch: aout) and continue using aout.
* my gcc-6 fork (https://github.com/bebbo/gcc branch: gcc-6-branch) now supports __chip, __fast and __far for .data and .bss. Those attributes can only be used if amiga hunk format gas/ld is chosen.
bebbo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Franko 2 planned for Amiga vitux project.Amiga Game Factory 43 02 June 2022 17:05
Are there any updates planned for the next time? amigafreak68k support.FS-UAE 5 09 July 2013 11:54
Snowbros update planned CFou! project.WHDLoad 12 18 March 2013 12:46
Yet another amiga website (planned) Fragger Amiga scene 3 01 June 2010 11:58
Next 2 remixes planned.... Malc request.Modules 4 01 May 2001 18:32

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:27.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07032 seconds with 13 queries