d p chang <firstname.lastname@example.org> writes:
> i compile this w/ (i only just added all the verbosity flags).
> mips64-linux-gcc -I
> /Volumes/Homey/dpc/Devel/linux-2.4.17/include/asm/gcc -D__KERNEL__
> -I/Volumes/Homey/dpc/Devel/linux-2.4.17/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0
> -mno-abicalls -fno-pic -Wa,--trap -pipe -mips4 -mmad -Wa,-march=r5231
> -mlong64 -mgp64 -mfp64 -ffreestanding -mabi=n32 reloc.S -c -o reloc.o
> -Wa,-acdhls -v -Wa,-v -Wa,-O0
Looking at this some more I realize that my problem is probably that
I'm lying to the compiler/assembler by claiming n32 and long64. We
would like to have 64 bit registers available to us in user space, but
enabling -mabi=64 gives an assertion in ld when it is trying to output
relocations for a .pdr section.
ideas? (other than for me to take the crack pipe out of my ass)
I feel discomfort, therefore I am alive. --- Graham Greene