patch-fpcsrc_rtl_openbsd_i386_cprt0_as 762 B

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-fpcsrc_rtl_openbsd_i386_cprt0_as,v 1.3 2016/01/04 11:40:41 pascal Exp $
  2. Add .note.openbsd.ident section, needed to identify as OpenBSD executable.
  3. http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=23685
  4. --- fpcsrc/rtl/openbsd/i386/cprt0.as.orig Sun Mar 3 22:18:20 2013
  5. +++ fpcsrc/rtl/openbsd/i386/cprt0.as Sun Jan 3 13:57:58 2016
  6. @@ -6,6 +6,14 @@
  7. .ascii "OpenBSD\0"
  8. .long 0
  9. .previous
  10. + .section ".note.openbsd.ident", "a"
  11. + .p2align 2
  12. + .long 8
  13. + .long 4
  14. + .long 1
  15. + .ascii "OpenBSD\0"
  16. + .long 0
  17. + .previous
  18. .file "crt0.c"
  19. gcc2_compiled.:
  20. .data
  21. @@ -108,7 +116,7 @@ ___start:
  22. movb $0,(%edx)
  23. movl $__progname_storage,__progname
  24. .L3:
  25. - call __init
  26. +# call __init
  27. subl $16,%esp
  28. pushl %eax
  29. movl 8(%ebp),%eax