home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!b.marco.de!krabat!louis
- From: louis@krabat.marco.de (Ju"rgen Fluk)
- Newsgroups: comp.sys.sun.admin
- Subject: SunOS 4.1.2 tmpfs and "ld -s" bug ?
- Message-ID: <1526@krabat.marco.de>
- Date: 22 Jan 93 15:09:46 GMT
- Organization: marco GmbH, D-8047 Karlsfeld
- Lines: 31
-
- we're running SunOS 4.1.2 on a SS2, /tmp is mounted as tmpfs:
- $ df /tmp
- Filesystem kbytes used avail capacity Mounted on
- swap 20812 692 20120 3% /tmp
-
- trying to link a program with
- /usr/5bin/cc aroff.o lang.o -s files.a strings.a -ll
- (aroff.o has lex source, therefore -ll), no problem.
-
- but if we run
- /usr/5bin/cc aroff.o lang.o -s files.a strings.a -ll -o /tmp/a.out,
- the size of the output file is the same, but the content is different
- (seems to be always the last 4k block). this normally hits the initialized
- data area, which may or may not cause core dumps of this program.
- and the changes are different for different compiler runs.
-
- no problem if run
- /usr/5bin/cc aroff.o lang.o files.a strings.a -ll -o /tmp/a.out
- strip /tmp/a.out
-
- so it seems like the linker has problems stripping an output file on
- tmpfs system. is this a known bug ? there are patches for tmpfs, but
- the readme's don't help me for this problem.
-
- i could provide .o and .a files (uuencoded), but i don't want to waste
- bandwidth for the first step.
-
- louis
- --
- louis@marco.de in real life: Ju"rgen Fluk
- ..!unido!marco!louis marco GmbH, 8060 Dachau tel: +49 8131 516142
-