Initial revision
[ssr] / StraySrc / Libraries / Core / s / xdll
1 ;
2 ; xdll.s
3 ;
4 ; Special bits for dynamic link libraries
5 ;
6 ; © 1994-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's C library stubs (xstubs).
12 ;
13 ; xstubs is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; xstubs is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with xstubs. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Standard bit at the top ----------------------------------------------
28
29 GET libs:header
30 GET libs:swis
31
32 ;----- Export things to C compiler ------------------------------------------
33
34 EXPORT |_Lib$Reloc$Off|
35 EXPORT |_Mod$Reloc$Off|
36 EXPORT |_Lib$Reloc$Off$DP|
37
38 |_Lib$Reloc$Off| EQU &21c
39 |_Mod$Reloc$Off| EQU &218
40 |_Lib$Reloc$Off$DP| EQU &f87
41
42 ;----- Dummy code for silly __main calls ------------------------------------
43
44 AREA |C$$code|,CODE,READONLY
45
46 EXPORT |__main|
47
48 |__main| ADR R0,error
49 SWI OS_GenerateError
50
51 error DCD 0
52 DCB "__main called in DLL",0
53 ALIGN
54
55 END