[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Possible Tools issue



Looks like one of the problems I'm encountering with sshd on uClinux is
compile/link related problem, and I am at lost as why it is happening.  I
will describe the problem below.  If anyone has any suggestion, it is
greatly appreciated.  Thanks.

Problem description:
It appears the address of variable 'options' is different between the file
defines it and the files access it.

I added following log statements in various files/routines to print out
address of 'options' variable and addresses of some of its fields:

error ("CELIA &options(0x%08x)", &options);
error ("CELIA &options.pubkey_authentication(0x%08x)",
&options.pubkey_authentication);
error ("CELIA &options.password_authentication(0x%08x)",
&options.password_authentication);
error ("CELIA &options.kbd_interactive_authentication(0x%08x)",
&options.kbd_interactive_authentication);
error ("CELIA &options.hostbased_authentication(0x%08x)",
&options.hostbased_authentication);


output from sshd.c where variable 'options' is defined:
CELIA &options(0x2ff113b4)
CELIA &options.pubkey_authentication(0x2ff11a2c)
CELIA &options.password_authentication(0x2ff11a44)
CELIA &options.kbd_interactive_authentication(0x2ff11a48)
CELIA &options.hostbased_authentication(0x2ff11a20)


output from a file where the variable 'options' is used:
<3>Jan  6 22:11:41 /bin/sshd[82]: error: CELIA &options(0x2ff18abc) 
<3>Jan  6 22:11:41 /bin/sshd[82]: error: CELIA
&options.pubkey_authentication(0x2ff19134) 
<3>Jan  6 22:11:42 /bin/sshd[82]: error: CELIA
&options.password_authentication(0x2ff1914c) 
<3>Jan  6 22:11:42 /bin/sshd[82]: error: CELIA
&options.kbd_interactive_authentication(0x2ff19150) 
<3>Jan  6 22:11:42 /bin/sshd[82]: error: CELIA
&options.hostbased_authentication(0x2ff19128)

As you can see the base address for options is different, which throws off
all data in the structure.  As far as I can tell sshd.c (where 'options' is
defined) has the correct address (I checked using jtag and map) and all
other files are using a different address (they are all same with each
other, but different from sshd.c).   

I attached output from make with this email.


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/