linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* sys_open fails with shared libs
@ 2000-08-03 15:07 Rene Pachernegg
  0 siblings, 0 replies; only message in thread
From: Rene Pachernegg @ 2000-08-03 15:07 UTC (permalink / raw)
  To: linuxppc-embedded


hi,

We ported  linux (kernel, sysvinit, getty, login, sash ...) to our ppc
740 based system, which worked fine using static linked libs.
We are trying now  to support dynamic linking, which causes login to
fail.

I was tracking down the problem to the following:
static:    sys_open in the kernel gets correct filenames (e.g.:
/etc/passwd from getpwnam in libc)
dynamic:    sys_open gets senseless names and cant open the needed files
(--> login fails without passwd) whenever it is called from a libc
function. Opening files from elsewhere is working fine.

It seems to be a kind of adressing problem so I controlled the adresses
of the filename parameter in sys_open, which is always FFExxxxx (don't
know if that may be an important hint) whenever its called from the
shared libs.

Everything else works with the shared libs. They are properly loaded (as
it seems) and the programs work fine. Calls to library functions work
to. It's seems to be just the system call open, which does not work from
the shared libs.

For cross compiling we use:
    bin-utils 2.9.5.0.22
    gcc 2.95.2
    glibc 2.1.2

Any suggestions?
Thanks,
    Ren


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-03 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-03 15:07 sys_open fails with shared libs Rene Pachernegg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).