public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mail@felix-potthast.de" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/31662] Stack not aligned at _start when calling ld.so explicitly
Date: Sun, 21 Apr 2024 07:27:53 +0000	[thread overview]
Message-ID: <bug-31662-131-yzbBnVl4ZO@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31662-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=31662

--- Comment #4 from Felix Potthast <mail@felix-potthast.de> ---
@Andreas Schwab:
Sure, but the elf entry point is not a normal function and there is no return
address on the stack. It is not called but jumped to at the end of
_dl_start_user.

@H.J.Lu:
Yes, this is intentional. The point is: the stack pointer is guaranteed to be
16-byte aligned at process entry by the ABI. So i should'nt have to align it
before jumping into memcpy.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-04-21  7:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19 22:33 [Bug dynamic-link/31662] New: " mail@felix-potthast.de
2024-04-20  7:03 ` [Bug dynamic-link/31662] " schwab@linux-m68k.org
2024-04-20  7:16 ` schwab@linux-m68k.org
2024-04-20 15:04 ` hjl.tools at gmail dot com
2024-04-21  7:27 ` mail@felix-potthast.de [this message]
2024-04-21  7:53 ` schwab@linux-m68k.org
2024-04-21  8:29 ` schwab@linux-m68k.org
2024-04-21 10:55 ` mail@felix-potthast.de

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=bug-31662-131-yzbBnVl4ZO@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).