[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: GNU ld (sym-ld?) ...



> Stephen Henson writes:
> 
> > It appears that gcc-ld and possibly sym-ld do not set the 'x' bits of output
> > files. The last time I looked at the sources two chmod()'s had #ifndef atarist
> > round them, presumably from pre-MiNT/minixfs days.
> 
>  that reminds me...  i once tried the gcc -V option to use different
> compiler versions, and didn't get it to work.  could that be another
> #ifndef atarist from early days?
> 

	the following diff from update32 fixes it:
#!/bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	diffs
# This archive created: Fri Jul 16 13:10:16 1993
# By:	Jwahar R. Bammi(Cadence Design Systems)
#     Usenet:	 uunet!cadence!bammi
#   Internet:	 bammi@cadence.com
#
export PATH; PATH=/bin:$PATH
echo shar: extracting "'diffs'" '(2586 characters)'
if test -f 'diffs'
then
	echo shar: over-writing existing file "'diffs'"
fi
sed 's/^X//' << \SHAR_EOF > 'diffs'
X===================================================================
XRCS file: /net/acae127/home/bammi/etc/src/master/atari/cross-util/Changelog,v
Xretrieving revision 1.39
Xdiff -c -r1.39 Changelog
X*** 1.39	1993/05/21 15:27:29
X--- Changelog	1993/07/13 19:57:32
X***************
X*** 485,487 ****
X--- 485,492 ----
X  	cleanup
X  
X  ----------------------------- Patchlevel 36 --------------------------------
X+ 
X+ ld.c, sym-ld.c:: ++jrb
X+ 	do chmod() on output file.
X+ 
X+ ----------------------------- Patchlevel 37 --------------------------------
X===================================================================
XRCS file: /net/acae127/home/bammi/etc/src/master/atari/cross-util/PatchLev.h,v
Xretrieving revision 1.33
Xdiff -c -r1.33 PatchLev.h
X*** 1.33	1993/05/21 15:23:00
X--- PatchLev.h	1993/07/13 19:57:35
X***************
X*** 1,4 ****
X! #define PatchLevel "36"
X  
X  /*
X   *	the Patch Level above is to identify the version
X--- 1,4 ----
X! #define PatchLevel "37"
X  
X  /*
X   *	the Patch Level above is to identify the version
X===================================================================
XRCS file: /net/acae127/home/bammi/etc/src/master/atari/cross-util/ld.c,v
Xretrieving revision 1.43
Xdiff -c -r1.43 ld.c
X*** 1.43	1993/05/21 15:23:08
X--- ld.c	1993/07/13 19:57:38
X***************
X*** 3930,3938 ****
X  
X    filemode = statbuf.st_mode;
X  
X- #ifndef atarist
X    chmod (output_filename, filemode & ~0111);
X- #endif
X  
X    /* Output the a.out header.  */
X    write_header ();
X--- 3930,3936 ----
X***************
X*** 3967,3975 ****
X  
X    fclose (outdesc);
X  
X- #ifndef atarist
X    chmod (output_filename, filemode | 0111);
X- #endif
X  
X  #if (defined(MINIX) || defined(atariminix))
X    /* write out.h format stuff out for MDB if requested */
X--- 3965,3971 ----
X===================================================================
XRCS file: /net/acae127/home/bammi/etc/src/master/atari/cross-util/sym-ld.c,v
Xretrieving revision 1.23
Xdiff -c -r1.23 sym-ld.c
X*** 1.23	1993/03/29 03:41:12
X--- sym-ld.c	1993/07/13 19:57:42
X***************
X*** 3548,3556 ****
X  
X    filemode = statbuf.st_mode;
X  
X- #if !(defined(CROSSATARI) || defined(atarist) || defined(atariminix))
X    chmod (output_filename, filemode & ~0111);
X- #endif
X  
X    /* Output the a.out header.  */
X    write_header ();
X--- 3548,3554 ----
X***************
X*** 3574,3582 ****
X  
X    close (outdesc);
X  
X- #if !(defined(CROSSATARI) || defined(atarist) || defined(atariminix))
X    chmod (output_filename, filemode | 0111);
X- #endif
X  }
X  
X  void modify_location (), perform_relocation (), copy_text (), copy_data ();
X--- 3572,3578 ----
SHAR_EOF
if test 2586 -ne "`cat 'diffs' | wc -c`"
then
	echo shar: error transmitting "'diffs'" '(should have been 2586 characters)'
fi
#	End of shell archive
exit 0

cheers,
--
bang:   uunet!cadence!bammi			jwahar r. bammi
domain: bammi@cadence.com
GEnie:	J.Bammi
CIS:    71515,155