mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 01:52:48 +02:00
* fix ident patch script and i386/cprt0.as
This commit is contained in:
parent
94665a40d7
commit
61f559ff56
@ -24,14 +24,9 @@
|
|||||||
#
|
#
|
||||||
# some typical values:
|
# some typical values:
|
||||||
#
|
#
|
||||||
# freebsd 5.4 504000
|
|
||||||
# freebsd 6.3 (prerelease) : 603100
|
# FreeBSD 12.1
|
||||||
# freebsd 7.0 700055
|
# FreeBSD 13.1 1301000
|
||||||
# freebsd 8.0 800500 (-stable)
|
|
||||||
# FreeBSD 9.0 900044
|
|
||||||
# FreeBSD 11.0 1100122
|
|
||||||
# FreeBSD 11.1 1101001
|
|
||||||
# FreeBSD 12.1 1201000
|
|
||||||
|
|
||||||
.file "cprt0.as"
|
.file "cprt0.as"
|
||||||
.ident "FreePascal 2.6.x/2.7.x series dynlinked to libc"
|
.ident "FreePascal 2.6.x/2.7.x series dynlinked to libc"
|
||||||
@ -44,7 +39,7 @@ abitag:
|
|||||||
.long 4
|
.long 4
|
||||||
.long 1
|
.long 1
|
||||||
.string "FreeBSD"
|
.string "FreeBSD"
|
||||||
.long 900044
|
.long 1201000
|
||||||
.section .rodata.str1.1,"aMS",@progbits,1
|
.section .rodata.str1.1,"aMS",@progbits,1
|
||||||
.LC0:
|
.LC0:
|
||||||
.string ""
|
.string ""
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$#" -ne 1 ]
|
if [ "$#" -ne 1 ]
|
||||||
then
|
then
|
||||||
elfdump -n `which elfdump` |awk '/FreeBSD/{print $2}' >elfversion
|
elfdump -n `which elfdump` |awk '/FreeBSD/{print $2}'| head -n1 >elfversion
|
||||||
IDVERSION=`cat elfversion`
|
IDVERSION=`cat elfversion`
|
||||||
rm elfversion
|
rm elfversion
|
||||||
else
|
else
|
||||||
@ -9,10 +9,10 @@ IDVERSION=$1
|
|||||||
fi
|
fi
|
||||||
echo Patching cprt0.as with version $IDVERSION
|
echo Patching cprt0.as with version $IDVERSION
|
||||||
|
|
||||||
sed -I.sav -es/900044/$IDVERSION/ cprt0.as
|
sed -I.sav -es/1201000/$IDVERSION/ cprt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ dllprt0.as
|
sed -I.sav -es/1201000/$IDVERSION/ dllprt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ prt0.as
|
sed -I.sav -es/1201000/$IDVERSION/ prt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ gprt0.as
|
sed -I.sav -es/1201000/$IDVERSION/ gprt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ si_c.inc
|
sed -I.sav -es/1201000/$IDVERSION/ si_c.inc
|
||||||
sed -I.sav -es/900044/$IDVERSION/ si_prc.inc
|
sed -I.sav -es/1201000/$IDVERSION/ si_prc.inc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user