Skip to contentSkip to conversation

CVS [email protected]: linux

DISCUSSION Maciej W. Rozycki 2 participants 3 messages Feb 21, 2003 1 message not in the archive MIPS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · On Thu, 20 Feb 2003 [email protected] wrote:

Modified files:
include/asm-mips64: Tag: linux_2_4 a.out.h elf.h processor.h arch/mips64/kernel: Tag: linux_2_4 process.c signal.c

Log message:

	Represent ABI (o32,n32,n64) in thread mflags using 2 bits:
	MF_32BIT_REGS, MF_32BIT_ADDR.

Why do you assume no ABI set for ELF32 means n32? Historically it means
o32 and arch/mips64/kernel/binfmt_elfo32.c treats it as such. Also a brief study of binutils reveals the interpretation is the same for IRIX which does not handle the EF_MIPS_ABI mask.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#2 lore raw

Suggestions and corrections are welcome. I'm not an ABI/binutils expert. FYI, I let Ralf eyeball this before checking it in.

Kip

Quoted 20 lines · Maciej W. Rozycki
Quoted 7 lines · On Thu, 20 Feb 2003 [email protected] wrote:

Modified files:
include/asm-mips64: Tag: linux_2_4 a.out.h elf.h processor.h arch/mips64/kernel: Tag: linux_2_4 process.c signal.c

Log message:
Represent ABI (o32,n32,n64) in thread mflags using 2 bits:
MF_32BIT_REGS, MF_32BIT_ADDR.

Why do you assume no ABI set for ELF32 means n32? Historically it means
o32 and arch/mips64/kernel/binfmt_elfo32.c treats it as such. Also a brief study of binutils reveals the interpretation is the same for IRIX which does not handle the EF_MIPS_ABI mask.

--

(quoted diff) +3 -0
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#3 lore raw
Quoted 2 lines · Kip Walker

Suggestions and corrections are welcome. I'm not an ABI/binutils expert. FYI, I let Ralf eyeball this before checking it in.

False alarm -- sorry for the confusion. The ELF flags for MIPS are
twisted and inconsistent due to historical reasons (or ad hoc hacks) and it seems they fooled me this time. We could actually adjust binfmt_elfo32.c a bit instead.

Quoted 6 lines
Quoted 5 lines · Maciej W. Rozycki
Quoted 5 lines

Modified files:
include/asm-mips64: Tag: linux_2_4 a.out.h elf.h processor.h arch/mips64/kernel: Tag: linux_2_4 process.c signal.c

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

Log message:
Represent ABI (o32,n32,n64) in thread mflags using 2 bits:
MF_32BIT_REGS, MF_32BIT_ADDR.

Why do you assume no ABI set for ELF32 means n32? Historically it means
o32 and arch/mips64/kernel/binfmt_elfo32.c treats it as such. Also a brief study of binutils reveals the interpretation is the same for IRIX which does not handle the EF_MIPS_ABI mask.

Please try to reply below original text, BTW.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +