home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text4669.txt < prev    next >
Encoding:
Internet Message Format  |  1996-03-31  |  2.9 KB

  1. Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) by nacm.com (8.6.10/8.6.9) with SMTP id OAA16129 for <executor@nacm.com>; Fri, 8 Sep 1995 14:25:44 -0700
  2. Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1)
  3.       from leibniz.math.fu-berlin.de (160.45.40.10) with smtp
  4.       id <m0srAum-0000a3C>; Fri, 8 Sep 95 23:24 MEST
  5. Received: by leibniz.math.fu-berlin.de (/\=-/\ Smail3.1.18.1 #18.14)
  6.       id <m0srAul-000sObC>; Fri, 8 Sep 95 23:24 MET DST
  7. Message-Id: <m0srAul-000sObC@leibniz.math.fu-berlin.de>
  8. From: wojtek@math.fu-berlin.de (Wojciech Was)
  9. Subject: Re: Svga & Linux -- workaround
  10. To: executor@nacm.com
  11. Date: Fri, 8 Sep 1995 23:24:46 +0200 (MET DST)
  12. Reply-To: wojtek@math.fu-berlin.de
  13. In-Reply-To: <m0sr4yu-000GOkC@gwar.ardi.com> from "Mat Hostetter" at Sep 8, 95 09:04:00 am
  14. X-Mailer: ELM [version 2.4 PL22]
  15. MIME-Version: 1.0
  16. Content-Type: text/plain; charset=US-ASCII
  17. Content-Transfer-Encoding: 8bit
  18. Content-Length: 1886      
  19. Sender: owner-paper@nacm.com
  20. Precedence: bulk
  21.  
  22. For those, who cannot wait for 1.99o8 and other happy experimenters.
  23.  
  24. > Here's a message from the linux-svgalib mailing list yesterday, from
  25. ...........
  26. > > I'll investigate further, but if I don't find a simple solution I'll make
  27. > > vga_safety_fork a noop until a working solution is found.
  28. ...........
  29.  
  30. A quick'n'dirty workaround:
  31.  
  32. Create a LD_PRELOAD object which patches vga_safety_fork away.  Something like:
  33.  
  34. $ cat > no_safety_fork.c
  35. void no_safety_fork () {}
  36. ^D
  37. $ gcc -b i486-linuxaout -O2 -fomit-frame-pointer -c -o foo.o no_safety_fork.c
  38. $ ld -m i386linux -x -Ttext 0x50000000 -o no_safety_fork.o foo.o -lvga \
  39.      -u __PLT__vga_safety_fork \
  40.      -defsym preload_no_safety_fork=__PLT__vga_safety_fork
  41.  
  42. Move the resulting object (no_safety_fork.o) where you keep the a.out libs
  43. and start executor with:
  44.  
  45. $ LD_AOUT_PRELOAD=<path_to_no_safety_fork.o> executor-svga
  46.  
  47. Some ancient ld.so's will require LD_PRELOAD (without the AOUT).
  48.  
  49. It works for me (sort of) on Trio64 (S3-like thing), I still need to restore
  50. the textmode on return from executor.  For further information read the file
  51. ld-so/example/README.preload in the ld.so distribution.
  52.  
  53. As the above is a big kludge of unknown value, I am _not_ responsible
  54. for anything with respect to it.
  55.  
  56. - Wojtek
  57.  
  58. -------------------------------------------------------------
  59. begin 755 no_safety_fork.o.gz
  60. M'XL("`($43`"`VYO7W-A9F5T>5]F;W)K+F\`[=HQ3\)0$`?P4S3&R0Z,#@P,
  61. M3@TP$`<'@=:`:8"T[)="BR$B);0:W-R<3%C\`&Z.C&X..AKCQW'TRGMH$[\`
  62. MP_^77._>>]>FZWOM!P5$!JD0SQ(%HBYI;XO%8CSJWUSX9AR99;(<IW!^?34M
  63. ME,W*=%PE`````````-A\1=GKEU;[_>7@D[:(C.5@O28C^CY0X^WTB,"@;MY0
  64. M9P/I&AE_YP0`````````L+EV)'9)??//2][3^_IBIC[1];'4KJZ/I![I^E#J
  65. MN7[.J3SG+E/?2]Z7:$K/@^ZWI'[,S#])SDE\Y9:#ETS/:Z;G73)/(H[]89C<
  66. M\C":71(SJU\3N,R54E7&;=NV//::KM.J_ZZE?5ZSYMH6R[1;<UNVQTQJLE9W
  67. M;&YTVF=.J]%3T]SH=5QI]7JK89B$\X36B<-)D%X#/_$E]^.8X\2?)32=A>/(
  68. 1#_Z]H^Y,;_L!_P^(6&PA``"K
  69. `
  70. end
  71.  
  72.