[uClibc]uClibc supporting shared libs on mipsel

Mark and Janice Juszczec juszczec at hotmail.com
Thu Mar 13 02:09:20 UTC 2003



Hi folks

I got yesterday's snapshot, added my debugging code and reran my test.  
ldso.c is still getting 0x0 out of the Aux. Vec. Table, sticking it in 
header and crashing.

Everything checks out as before.  header is set to 0x0 because that's what 
ldso.c pulls out of the Aux Vec Table because that's what the kernel stuck 
in the Aux Vec Table.

I noticed something else and don't know if its related.  The debugging 
statements in the kernel show these entries placed in the Aux Vec Table at 
(some of the leading 0x7's aren't printing)

NEW_AUX_ENT nr=0 d=0 val=0
store id at addr=fffffb8
store val at addr7fffffbc

NEW_AUX_ENT nr=0 d=10 val=0
store id at addr=fffffb0
store val at addr7fffffb4

ldso.c does not start pulling stuff out of the Aux Vec Table at address 
0x7fffffb8 but at 0x7fffff58 (loaded by the 3rd call to NEW_AUX_ENT)

The debugging stuff is at the end of the email.

Mark


The kernel sticks the following in Aux Vec Table:

NEW_AUX_ENT nr=0 d=0 val=0
store id at addr=fffffb8
store val at addr7fffffbc

NEW_AUX_ENT nr=0 d=10 val=0
store id at addr=fffffb0
store val at addr7fffffb4

NEW_AUX_ENT nr=0 d=3 val=400034
store id at addr=fffff58
store val at addr7fffff5c

NEW_AUX_ENT nr=1 d=4 val=20
store id at addr=fffff60
store val at addr7fffff64

NEW_AUX_ENT nr=2 d=5 val=6
store id at addr=fffff68
store val at addr7fffff6c

NEW_AUX_ENT nr=3 d=6 val=1000
store id at addr=fffff70
store val at addr7fffff74

NEW_AUX_ENT nr=4 d=7 val=0
store id at addr=fffff78
store val at addr7fffff7c

NEW_AUX_ENT nr=5 d=8 val=0
store id at addr=fffff80
store val at addr7fffff84

NEW_AUX_ENT nr=6 d=9 val=402ec0
store id at addr=fffff88
store val at addr7fffff8c

NEW_AUX_ENT nr=7 d=b val=0
store id at addr=fffff90
store val at addr7fffff94

NEW_AUX_ENT nr=8 d=c val=0
store id at addr=fffff98
store val at addr7fffff9c

NEW_AUX_ENT nr=9 d=d val=0
store id at addr=fffffa0
store val at addr7fffffa4

NEW_AUX_ENT nr=a d=e val=0
store id at addr=fffffa8
store val at addr7fffffac

uClibc ldso.c gets the following off the stack as the Aux Vec Table:
loop filling auxvt with data at 0x7fffff58
address of auxvt getting the data is 0x7ffffce8
auxv_entry a_type=00000003
  a_un.a_val=00400034
  a_un.a_ptr=00400034
  a_un.a_fcn=00400034
loop filling auxvt with data at 0x7fffff60
address of auxvt getting the data is 0x7ffffcf0
auxv_entry a_type=00000004
  a_un.a_val=00000020
  a_un.a_ptr=00000020
  a_un.a_fcn=00000020
loop filling auxvt with data at 0x7fffff68
address of auxvt getting the data is 0x7ffffcf8
auxv_entry a_type=00000005
  a_un.a_val=00000006
  a_un.a_ptr=00000006
  a_un.a_fcn=00000006
loop filling auxvt with data at 0x7fffff70
address of auxvt getting the data is 0x7ffffd00
auxv_entry a_type=00000006
  a_un.a_val=00001000
  a_un.a_ptr=00001000
  a_un.a_fcn=00001000
loop filling auxvt with data at 0x7fffff78
address of auxvt getting the data is 0x7ffffd08
auxv_entry a_type=00000007
  a_un.a_val=00000000
  a_un.a_ptr=00000000
  a_un.a_fcn=00000000
loop filling auxvt with data at 0x7fffff80
address of auxvt getting the data is 0x7ffffd10
auxv_entry a_type=00000008
  a_un.a_val=00000000
  a_un.a_ptr=00000000
  a_un.a_fcn=00000000
loop filling auxvt with data at 0x7fffff88
address of auxvt getting the data is 0x7ffffd18
auxv_entry a_type=00000009
  a_un.a_val=00402ec0
  a_un.a_ptr=00402ec0
  a_un.a_fcn=00402ec0
loop filling auxvt with data at 0x7fffff90
address of auxvt getting the data is 0x7ffffd28
auxv_entry a_type=0000000b
  a_un.a_val=00000000
  a_un.a_ptr=00000000
  a_un.a_fcn=00000000
loop filling auxvt with data at 0x7fffff98
address of auxvt getting the data is 0x7ffffd30
auxv_entry a_type=0000000c
  a_un.a_val=00000000
  a_un.a_ptr=00000000
  a_un.a_fcn=00000000
loop filling auxvt with data at 0x7fffffa0
address of auxvt getting the data is 0x7ffffd38
auxv_entry a_type=0000000d
  a_un.a_val=00000000
  a_un.a_ptr=00000000
  a_un.a_fcn=00000000
loop filling auxvt with data at 0x7fffffa8
address of auxvt getting the data is 0x7ffffd40
auxv_entry a_type=0000000e
  a_un.a_val=00000000
  a_un.a_ptr=00000000
  a_un.a_fcn=00000000
getting header from auxvt entry at address 0x7ffffd08
header is 0x00


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the uClibc mailing list