Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Unmatched R_MIPS_HI16/R_MIPS_LO16 on gcc 3.5
@ 2005-05-23  7:10 Stanislaw Skowronek
  2005-05-23 11:17 ` Richard Sandiford
  0 siblings, 1 reply; 17+ messages in thread
From: Stanislaw Skowronek @ 2005-05-23  7:10 UTC (permalink / raw)
  To: linux-mips

Hi!

It seems that gcc (with -O; -O0 fixes the issue) will generate R_MIPS_HI16
without succeeding R_MIPS_LO16 (or the other way - but it's not a real
problem that way) in '.rel.text' (not '.rela.text'). According to SGI ELF
spec this combination is invalid (well, addend AHL is created from low 16
bits from HI16 and low 16 bits from LO16, and the actual result of
relocation might depend on the LO16 part - at least this is what I
understood from the specific[a]tion); it also upsets Indy PROM when
converted into ECOFF.

Gcc 3.4.3 does not exhibit this (wanton) behavior. What the heck?

Stanislaw Skowronek

--<=>--
  "There is no pain, you are receding...
   A distant ship, smoke on the horizon.
   You are only coming through in waves,
   Your lips move, but I can't hear what you're saying."

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-05-24 15:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23  7:10 Unmatched R_MIPS_HI16/R_MIPS_LO16 on gcc 3.5 Stanislaw Skowronek
2005-05-23 11:17 ` Richard Sandiford
2005-05-23 16:19   ` Stanislaw Skowronek
2005-05-23 17:23     ` Richard Sandiford
2005-05-23 17:32       ` Stanislaw Skowronek
2005-05-24  6:35         ` Richard Sandiford
2005-05-24  6:39           ` Stanislaw Skowronek
2005-05-24  6:56             ` Richard Sandiford
2005-05-24  6:58               ` Stanislaw Skowronek
2005-05-24 10:40                 ` Maciej W. Rozycki
2005-05-24 10:47                   ` Stanislaw Skowronek
2005-05-24 11:40                     ` Maciej W. Rozycki
2005-05-24 10:50                   ` Richard Sandiford
2005-05-24 14:22                   ` Ralf Baechle
2005-05-24 14:50                     ` Maciej W. Rozycki
2005-05-24 15:00                       ` Ralf Baechle
2005-05-24 15:04                         ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox