patch-fpcsrc_rtl_openbsd_i386_prt0_as 590 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-fpcsrc_rtl_openbsd_i386_prt0_as,v 1.2 2014/03/23 10:54:43 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/prt0.as.orig Mon Mar 4 09:48:00 2013
  5. +++ fpcsrc/rtl/openbsd/i386/prt0.as Tue Mar 11 19:36:06 2014
  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