All of lore.kernel.org
 help / color / mirror / Atom feed
* R_MIPS_26 etc.
@ 2002-12-10 16:11 ` yaelgilad
  0 siblings, 0 replies; 6+ messages in thread
From: yaelgilad @ 2002-12-10 16:11 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

Looking in the assembly code of my driver, I see the following
pattern repeating with every function call.
    4ce4: 0c000000  jal 0
      4ce4: R_MIPS_26 rx_wait_packet
(R_MIPS_26 is sometimes replaces by a similar command)
What is R_MIPS_26 ? What are the rest of them ?
I am guessing it has to do with relocatable addresses, but this specific
function is in the same C file. Marking it as "static" does change the code
and get rid of this command.

TIA
Gilad

P.S. I am building assembler files in two different methods:
- gmake <path-to-file>.lst
- mips-linux-odjdump -x -S <path-to-C-file>  > <path-to-file.lst>
The outputs are similar but not identical.
What's the more "correct" way ?
TIA-2





[-- Attachment #2: Type: text/html, Size: 2789 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* R_MIPS_26 etc.
@ 2002-12-12  7:07 ` yaelgilad
  0 siblings, 0 replies; 6+ messages in thread
From: yaelgilad @ 2002-12-12  7:07 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

Looking in the assembly code of my driver, I see the following
pattern repeating with every function call.
    4ce4: 0c000000  jal 0
      4ce4: R_MIPS_26 rx_wait_packet
(R_MIPS_26 is sometimes replaces by a similar command)
What is R_MIPS_26 ? What are the rest of them ?
I am guessing it has to do with relocatable addresses, but this specific
function is in the same C file. Marking it as "static" does change the code
and get rid of this command.

TIA
Gilad

P.S. I am building assembler files in two different methods:
- gmake <path-to-file>.lst
- mips-linux-odjdump -x -S <path-to-C-file>  > <path-to-file.lst>
The outputs are similar but not identical.
What's the more "correct" way ?
TIA-2





[-- Attachment #2: Type: text/html, Size: 2789 bytes --]

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

end of thread, other threads:[~2002-12-12 15:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 16:11 R_MIPS_26 etc yaelgilad
2002-12-10 16:11 ` yaelgilad
2002-12-10 16:19 ` Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
2002-12-12  7:07 yaelgilad
2002-12-12  7:07 ` yaelgilad
2002-12-12 15:14 ` Greg Lindahl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.