Browse Source

* belongs to last commit, x86_64 part

git-svn-id: trunk@20173 -
marco 13 years ago
parent
commit
8c9a603597
1 changed files with 32 additions and 2 deletions
  1. 32 2
      rtl/freebsd/x86_64/cprt0.as

+ 32 - 2
rtl/freebsd/x86_64/cprt0.as

@@ -1,6 +1,36 @@
+#
+#   This file is part of the Free Pascal run time library.
+#   Copyright (c) 1999-2000 by Marco van de Voort, Pierre Mueller
+#   members of the Free Pascal development team.
+#
+#   See the file COPYING.FPC, included in this distribution,
+#   for details about the copyright.
+#
+#   This program 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.
+#
+#**********************************************************************}
+#
+# FreeBSD  ELF startup code for Free Pascal for dynamical linking to libc.
+#
+# To avoid needing a "COMPAT" system, patch the constant following the 
+# "FreeBSD" field in the abitag to the relevant ABI number 
+# Some versions of the "file" command support
+# visualizing this constant. If not use elfdump, or patch 
+# automatically using the ../i386/identpatch.sh script
+#
+# some typical values: 
+#
+# freebsd 5.4 504000
+# freebsd 6.3 (prerelease) : 603100
+# freebsd 7.0 700055
+# freebsd 8.0 800500  (-stable)
+# FreeBSD 9.0 900044
+
 	.file	"crt1.c"
 #APP
-	.ident	"$FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4.20.1 2007/12/06 13:43:43 kib Exp $"
+        .ident  "FreePascal 2.6.x/2.7.x series dynlinked to libc"
 #NO_APP
 	.section	.note.ABI-tag,"a",@progbits
 	.align 4
@@ -11,7 +41,7 @@ abitag:
 	.long	4
 	.long	1
 	.string	"FreeBSD"
-	.long	700055
+	.long	900044
 .globl __progname
 	.section	.rodata
 .LC0: