home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text4675.txt < prev    next >
Encoding:
Text File  |  1996-03-31  |  2.2 KB  |  61 lines

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