02 July 2024, 00:04 | #161 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,572
|
Quote:
In most cases executables have neither symbols nor empty sections. And then you still have the SECSTRT_nlabel. At the end of the day I had to realise that I still cannot determine if a label should be generated for the empty section or the following section, because the offset is identical. Label-generation is triggered by offsets stored in the ira->LabelAdr2[]array. And its index ( p2labind) will be incremented as long as the current offset matches. Nothing is impossible, and I might have another look this week, but I fear the solution of this problem would need much bigger modifications. |
|
02 July 2024, 11:28 | #162 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,891
|
Dunno how often but as it has been generated by an old C compiler it could be seen elsewhere I guess.
|
02 July 2024, 11:41 | #163 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Quote:
Would it be possible to add another array alongside ira->LabelAdr2[]of equal size called something like ira->LabelHunkIndex[]? The elements would default to -1 (unknown hunk) but when symbols are added from a HUNK_SYMBOLit could be set to a valid value. Then this could be read in WriteSection Last edited by hop; 02 July 2024 at 11:44. Reason: typo, correction |
|
02 July 2024, 11:43 | #164 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,891
|
There is many games and some apps that contains symbols.
|
06 July 2024, 22:37 | #165 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,572
|
Quote:
Also I cannot promise I will have a look at it soon, because I just arrived at my holiday site, where I will spend the next 14 days. Even if bad weather may leave me some time (which is likely), my development equipment here is not optimal. Quote:
Yes, and this works fine. But how often do you have such a symbol at the section's base address, following an empty section? There are probably more serious problems to tackle. |
||
06 July 2024, 22:55 | #166 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Have a great holiday.
Quote:
I'm starting to gravitate towards supporting structured data however... |
|
06 July 2024, 23:04 | #167 | |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,891
|
Quote:
Are you going to use the include to define structs used for OS functions calls? |
|
08 July 2024, 22:21 | #168 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ira for Windows | jotd | Coders. General | 63 | 12 December 2023 10:53 |
New tutorial on sprites | Yragael | Coders. Tutorials | 8 | 04 September 2023 21:00 |
Debugging messages in serial (small tutorial, mainly for cross-dev) | alkis | Coders. Asm / Hardware | 7 | 22 February 2016 14:16 |
68020 to 68000 code convertion using Ira and PhxAss | gulliver | Coders. Asm / Hardware | 18 | 12 April 2014 01:09 |
Looking for IRA v1.07 or newer :-) | voxel | request.Apps | 7 | 30 July 2008 01:39 |
|
|