24 July 2013, 13:12 | #1 |
Registered User
Join Date: Feb 2008
Location: Saint-Petersburg / Russia
Posts: 324
|
Compiling CLib37 with VBCC 0.9
Hello all,
As a first step towards writing device driver for custom hardware, I am trying to compile the CLib37 against NDK 3.1 using the most recent VBCC 0.9. I get the following error message for the LibInit.c: Code:
error 3005: reloc type 1, size 8, mask 0xffffffff (symbol _ExLibID + 0x4051ce24) not supported In spite of the error 3005, the listing ends with 'There have been no errors', and there is no .o file either. Could anybody please help me here? Thanks. |
24 July 2013, 13:43 | #2 |
Registered User
Join Date: Feb 2008
Location: Saint-Petersburg / Russia
Posts: 324
|
Solved.
The DataTab structure apparently misses offset for lib_Flags (marked in bold). After I have added it everything compiles just fine. Code:
DataTab = #ifdef VBCC { 0xe000,8,NT_LIBRARY, 0x0080,10,(ULONG) &ExLibName[0], 0xe000,14,LIBF_SUMUSED|LIBF_CHANGED, 0xd000,20,VERSION, 0xd000,22,REVISION, 0x80,24,(ULONG) &ExLibID[0], (ULONG) 0 }; |
29 July 2013, 10:28 | #3 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,537
|
All data after the missing "14" have been written to an earlier (wrong) structure element. In the case of the error message, the 32-bit pointer ExLibID has written into an 8-bit field.
Vasm's error message means that the AmigaOS hunk file format does not support 8-bit pointers. The listing file contained "There have been no errors", because the error was recognized in the output module, after the listing has been written. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using timer.device in C (VBCC) | DBAlex | Coders. General | 2 | 28 June 2011 22:10 |
VBCC assembler linking syntax? | NovaCoder | Coders. General | 2 | 20 May 2011 03:04 |
VBCC 0.8j for Windows | hitchhikr | Coders. General | 11 | 09 October 2008 00:58 |
Kickstart 1.3 and GCC or VBCC? | cdoty | Coders. General | 1 | 23 April 2005 06:10 |
Compiler: vbcc 0.8g patch 2 released | Paul | News | 0 | 29 November 2004 15:41 |
|
|