English Amiga Board


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

 
 
Thread Tools
Old 19 February 2017, 09:23   #1
laurikka
 
Posts: n/a
Vlink 0.15b and newer crashes KS1.3

Anybody else noticed that even a simple "hello world"-program crashes KS1.3 if linked with Vlink 0.15b or newer?
It still works with KS2.0 and later and also works in KS1.3 if linked with 0.15a or earlier versions.

My environment is Windows 7. I compiled Vlink WIN32-version with VS2015 nmake, omitting /Dsnprintf=_snprintf from COPTS to get it to compile.
 
Old 19 February 2017, 12:45   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
vlink 0.15b changed some critical parts of the linker. Although I worked on it over the whole summer there had still been some issues left. For example:
  • Sign-extension of relocation addends, fixed in V0.15c
  • Removing zero-bytes at the end of a section, can be disabled with -Z in V0.15d
I guess that both can affect you, especially the section-trimming under Kickstart 1.x, which, unlike OS2.0+, does not automatically delete the uninitialized part of a section.

Solution: Update to vlink V0.15d and use the -Z option when linking for Kickstart 1.x. When you compile with vbcc, using the kick13 config file, or similar, add the -Z option to the -ld, -l2, -ldv, -l2v lines of the config.

(All this will be changed automatically in a future vbcc release, of course.)
phx is offline  
Old 19 February 2017, 13:03   #3
laurikka
 
Posts: n/a
Great, -Z solved the crashing. Thanks for fast reply and great tools! Hope that you will keep Kickstart 1.x compability in mind in future also.
 
Old 19 February 2017, 22:04   #4
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
Quote:
Originally Posted by laurikka View Post
Great, -Z solved the crashing.


Quote:
Hope that you will keep Kickstart 1.x compability in mind in future also.
For sure! I'm currently working on a m68k-kick13 target for vbcc. So you can work with the original Commodore 1.3 headers and create real 1.3 software.
phx 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
Guardian for KS1.2/1.3 Jope request.Apps 3 08 November 2018 08:00
Trying out vlink and vasm cla Coders. General 2 30 September 2016 20:30
VLINK multiple VASM objects roondar Coders. Asm / Hardware 2 24 April 2016 01:03
A600 Ks1.2 Arnie support.Hardware 2 19 October 2011 20:46
fastfilesystem on KS1.3 orange support.Apps 1 15 September 2010 18:18

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:13.

Top

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