This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: avoid compiling in srcdir [was: [Failure]compiling glibc on


> From: Zack Weinberg <zack@rabi.phys.columbia.edu>
> 
> The crt* files are damaged.  Could you please mail us the files initfini.s
,
> crti.S, and crtn.S which will be found in /wk-glibc/build-glibc/csu.
> 
> Also please tell us the version of gcc you are using.
> 
> zw
> 
Thanks Zack,
Yes, I send you these files.
I am useing ecgs-1.0.3a now.
I had same result when useing ecgs-1.0.3-prerelease. 

Kaoru Fukui
k_fukui@highway.ne.jp

======= crti.S ===============================
	.file	"initfini.c"

 # rs6000/powerpc options: -msdata=data -G 8
 # GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (powerpc-unknown-linux-gnulibc1
) compiled by GNU C version egcs-2.90.28 980423 (egcs-1.0.3 prerelease).
 # options passed:  -g0 -g0 -O3 -Wall -Winline -Wno-parentheses
 # -Wstrict-prototypes -Wwrite-strings -fpic -fpic -finhibit-size-directive
 # -fno-exceptions
 # options enabled:  -fdefer-pop -fomit-frame-pointer -fcse-follow-jumps
 # -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
 # -fstrength-reduce -fpeephole -fforce-mem -ffunction-cse
 # -finline-functions -finline -fkeep-static-consts -fcaller-saves
 # -fpcc-struct-return -frerun-cse-after-loop -frerun-loop-opt
 # -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fpic
 # -fsjlj-exceptions -fcommon -finhibit-size-directive -fverbose-asm
 # -fgnu-linker -fregmove -falias-check -fargument-alias -mpowerpc
 # -mnew-mnemonics -mcall-sysv -msdata=data

gcc2_compiled.:
	
#include "defs.h"
	
/*@HEADER_ENDS*/
/*@_init_PROLOG_BEGINS*/
	.section .init
	END_INIT
	
/*@_init_EPILOG_ENDS*/
	
/*@_fini_PROLOG_BEGINS*/
	.section .fini
	END_FINI
	
/*@_fini_EPILOG_ENDS*/
	
/*@TRAILER_BEGINS*/
/*@TRAILER_BEGINS*/
	.section ".text"
	.section ".text"
	.align 2
	.align 2
	.globl dummy
	.globl dummy
	.type	 dummy,@function
	.type	 dummy,@function
dummy:
dummy:
	stwu 1,-16(1)
	stwu 1,-16(1)
	mflr 0
	mflr 0
	stw 0,20(1)
	stw 0,20(1)
	mr. 9,3
	mr. 9,3
	bc 12,2,.L19
	bc 12,2,.L19
	mtlr 9
	mtlr 9
	blrl
	blrl
.L19:
.L19:
	lwz 0,20(1)
	lwz 0,20(1)
	mtlr 0
	mtlr 0
	addi 1,1,16
	addi 1,1,16
	blr
	blr
	.align 2
	.align 2
	.globl _init
	.globl _init
	.type	 _init,@function
	.type	 _init,@function
_init:
_init:
	stwu 1,-16(1)
	stwu 1,-16(1)
	mflr 0
	mflr 0
	stw 0,20(1)
	stw 0,20(1)
	bl _GLOBAL_OFFSET_TABLE_@local-4
	bl _GLOBAL_OFFSET_TABLE_@local-4
	mflr 9
	mflr 9
	lwz 0,__gmon_start__@got(9)
	lwz 0,__gmon_start__@got(9)
	cmpwi 1,0,0
	cmpwi 1,0,0
	bc 12,6,.L21
	bc 12,6,.L21
	bl __gmon_start__@plt
	bl __gmon_start__@plt
.L21:
.L21:
	ALIGN
	ALIGN
	END_INIT
	END_INIT
	
	
/*@_init_PROLOG_ENDS*/
/*@_init_PROLOG_ENDS*/
	
/*@_init_EPILOG_BEGINS*/
	.section .init
	lwz 0,20(1)
	mtlr 0
	addi 1,1,16
	blr
	.align 2
	.globl _fini
	.type	 _fini,@function
_fini:
	stwu 1,-16(1)
	mflr 0
	stw 0,20(1)
	ALIGN
	END_FINI
	
/*@_fini_PROLOG_ENDS*/
	bl i_am_not_a_leaf@plt
	
/*@_fini_EPILOG_BEGINS*/
	.section .fini
	lwz 0,20(1)
	mtlr 0
	addi 1,1,16
	blr
	.ident	"GCC: (GNU) egcs-2.90.29 980515 (egcs-1.0.3 release)"

======= crtn.S===============================
	.file	"initfini.c"

 # rs6000/powerpc options: -msdata=data -G 8
 # GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (powerpc-unknown-linux-gnulibc1
) compiled by GNU C version egcs-2.90.28 980423 (egcs-1.0.3 prerelease).
 # options passed:  -g0 -g0 -O3 -Wall -Winline -Wno-parentheses
 # -Wstrict-prototypes -Wwrite-strings -fpic -fpic -finhibit-size-directive
 # -fno-exceptions
 # options enabled:  -fdefer-pop -fomit-frame-pointer -fcse-follow-jumps
 # -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
 # -fstrength-reduce -fpeephole -fforce-mem -ffunction-cse
 # -finline-functions -finline -fkeep-static-consts -fcaller-saves
 # -fpcc-struct-return -frerun-cse-after-loop -frerun-loop-opt
 # -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fpic
 # -fsjlj-exceptions -fcommon -finhibit-size-directive -fverbose-asm
 # -fgnu-linker -fregmove -falias-check -fargument-alias -mpowerpc
 # -mnew-mnemonics -mcall-sysv -msdata=data

gcc2_compiled.:
	
#include "defs.h"
	
/*@HEADER_ENDS*/
/*@TRAILER_BEGINS*/
	.section ".text"
	.align 2
	.globl dummy
	.type	 dummy,@function
dummy:
	stwu 1,-16(1)
	mflr 0
	stw 0,20(1)
	mr. 9,3
	bc 12,2,.L19
	mtlr 9
	blrl
.L19:
	lwz 0,20(1)
	mtlr 0
	addi 1,1,16
	blr
	.align 2
	.globl _init
	.type	 _init,@function
_init:
	stwu 1,-16(1)
	mflr 0
	stw 0,20(1)
	bl _GLOBAL_OFFSET_TABLE_@local-4
	mflr 9
	lwz 0,__gmon_start__@got(9)
	cmpwi 1,0,0
	bc 12,6,.L21
	bl __gmon_start__@plt
.L21:
	ALIGN
	END_INIT
	
/*@_init_PROLOG_ENDS*/
	
/*@_init_EPILOG_BEGINS*/
/*@_init_EPILOG_BEGINS*/
	.section .init
	.section .init
	lwz 0,20(1)
	lwz 0,20(1)
	mtlr 0
	mtlr 0
	addi 1,1,16
	addi 1,1,16
	blr
	blr
	.align 2
	.align 2
	.globl _fini
	.globl _fini
	.type	 _fini,@function
	.type	 _fini,@function
_fini:
_fini:
	stwu 1,-16(1)
	stwu 1,-16(1)
	mflr 0
	mflr 0
	stw 0,20(1)
	stw 0,20(1)
	ALIGN
	ALIGN
	END_FINI
	END_FINI
	
	
/*@_fini_PROLOG_ENDS*/
/*@_fini_PROLOG_ENDS*/
	bl i_am_not_a_leaf@plt
	bl i_am_not_a_leaf@plt
	
	
/*@_fini_EPILOG_BEGINS*/
/*@_fini_EPILOG_BEGINS*/
	.section .fini
	.section .fini
	lwz 0,20(1)
	lwz 0,20(1)
	mtlr 0
	mtlr 0
	addi 1,1,16
	addi 1,1,16
	blr
	blr
	.ident	"GCC: (GNU) egcs-2.90.29 980515 (egcs-1.0.3 release)"
	.ident	"GCC: (GNU) egcs-2.90.29 980515 (egcs-1.0.3 release)"

======= initfini.s===============================
	.file	"initfini.c"

 # rs6000/powerpc options: -msdata=data -G 8
 # GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (powerpc-unknown-linux-gnulibc1
) compiled by GNU C version egcs-2.90.28 980423 (egcs-1.0.3 prerelease).
 # options passed:  -g0 -g0 -O3 -Wall -Winline -Wno-parentheses
 # -Wstrict-prototypes -Wwrite-strings -fpic -fpic -finhibit-size-directive
 # -fno-exceptions
 # options enabled:  -fdefer-pop -fomit-frame-pointer -fcse-follow-jumps
 # -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
 # -fstrength-reduce -fpeephole -fforce-mem -ffunction-cse
 # -finline-functions -finline -fkeep-static-consts -fcaller-saves
 # -fpcc-struct-return -frerun-cse-after-loop -frerun-loop-opt
 # -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fpic
 # -fsjlj-exceptions -fcommon -finhibit-size-directive -fverbose-asm
 # -fgnu-linker -fregmove -falias-check -fargument-alias -mpowerpc
 # -mnew-mnemonics -mcall-sysv -msdata=data

gcc2_compiled.:
	
#include "defs.h"
	
/*@HEADER_ENDS*/
	
/*@TESTS_BEGIN*/
	
/*@TESTS_END*/
	
/*@_init_PROLOG_BEGINS*/
	.section .init
	END_INIT
	
/*@_init_EPILOG_ENDS*/
	
/*@_fini_PROLOG_BEGINS*/
	.section .fini
	END_FINI
	
/*@_fini_EPILOG_ENDS*/
	
/*@TRAILER_BEGINS*/
	.section ".text"
	.align 2
	.globl dummy
	.type	 dummy,@function
dummy:
	stwu 1,-16(1)
	mflr 0
	stw 0,20(1)
	mr. 9,3
	bc 12,2,.L19
	mtlr 9
	blrl
.L19:
	lwz 0,20(1)
	mtlr 0
	addi 1,1,16
	blr
	.align 2
	.globl _init
	.type	 _init,@function
_init:
	stwu 1,-16(1)
	mflr 0
	stw 0,20(1)
	bl _GLOBAL_OFFSET_TABLE_@local-4
	mflr 9
	lwz 0,__gmon_start__@got(9)
	cmpwi 1,0,0
	bc 12,6,.L21
	bl __gmon_start__@plt
.L21:
	ALIGN
	END_INIT
	
/*@_init_PROLOG_ENDS*/
	
/*@_init_EPILOG_BEGINS*/
	.section .init
	lwz 0,20(1)
	mtlr 0
	addi 1,1,16
	blr
	.align 2
	.globl _fini
	.type	 _fini,@function
_fini:
	stwu 1,-16(1)
	mflr 0
	stw 0,20(1)
	ALIGN
	END_FINI
	
/*@_fini_PROLOG_ENDS*/
	bl i_am_not_a_leaf@plt
	
/*@_fini_EPILOG_BEGINS*/
	.section .fini
	lwz 0,20(1)
	mtlr 0
	addi 1,1,16

	blr
	.ident	"GCC: (GNU) egcs-2.90.29 980515 (egcs-1.0.3 release)"

========= end =================================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]