linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Rene Pachernegg <rene.pachernegg@apus.co.at>
To: linuxppc-embedded@lists.linuxppc.org
Subject: syscall adressing problem
Date: Thu, 10 Aug 2000 18:07:13 +0200	[thread overview]
Message-ID: <3992D331.21C3BD9C@apus.co.at> (raw)


Hi,
I ve been debugging for more then 1 week now and I hope somebody can
help me with my problem.
Kernel: 2.2.14
Hardware: custom ppc740 board, 16MB RAM, flash card slot
                console via custom bus -> rs485 interface card --> pc
Cross-Compiler:
    binutils 2.9.5.0.37
    gcc-core 2.95.2
    glibc 2.1.3
    glibc-2.1.3-ctype-patch
    glibc-crypt-2.1
    glibc-linuxthreads-2.1.3

I cross-compiled the kernel, sysvinit, agetty, login, sash
Everthing works fine with static linking.
Dynamic linking causes the login to be impossible (Executing the dynamic
linked programs is working fine too). The reason is the following:
login calls getpwnam from glibc to read the passwd file into the
passwd-structure. The glibc its is calling a fopen("/etc/passwd"), which
invokes the syscall sys_open in open.c in the kernel.
When I printk the filename parameter in sys_open (even with
get_from_user) it reads just nonsense. So I checked the adress of the
parameter filename in the kernel and in the glibc, where filename
(/etc/passwd) is a const char. The are identical.

Further searching leaded to the following:
    Sometimes fopen or open syscall work well
    Whenever they dont work they are call from the libc.so and the
filename paramter adresses are 0x0fxxxxxx.

It seems to be something with the dynamic linker, but I have no idea
what exactly. I even changed my cross-compile utilities from
    glibc-2.1.2 --> glibc-2.1.3
    binutils-2.9.5.0.24 -> 2.9.5.0.37

regards,
    Rene


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

             reply	other threads:[~2000-08-10 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-10 16:07 Rene Pachernegg [this message]
     [not found] <200008101623.SAA11915@denx.local.net>
2000-08-16  9:57 ` syscall adressing problem Rene Pachernegg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3992D331.21C3BD9C@apus.co.at \
    --to=rene.pachernegg@apus.co.at \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).