;
; xdll.s
;
; Special bits for dynamic link libraries
;
;  1994-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's C library stubs (xstubs).
;
; xstubs is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; xstubs is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with xstubs.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Standard bit at the top ----------------------------------------------

		GET	libs:header
		GET	libs:swis

;----- Export things to C compiler ------------------------------------------

		EXPORT	|_Lib$Reloc$Off|
		EXPORT	|_Mod$Reloc$Off|
		EXPORT	|_Lib$Reloc$Off$DP|

|_Lib$Reloc$Off|	EQU	&21c
|_Mod$Reloc$Off|	EQU	&218
|_Lib$Reloc$Off$DP|	EQU	&f87

;----- Dummy code for silly __main calls ------------------------------------

		AREA	|C$$code|,CODE,READONLY

		EXPORT	|__main|

|__main|	ADR	R0,error
		SWI	OS_GenerateError

error		DCD	0
		DCB	"__main called in DLL",0
		ALIGN

		END
