public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/31218] PLT rewrite doesn't work on unrelocated definition
Date: Sat, 06 Jan 2024 18:59:17 +0000	[thread overview]
Message-ID: <bug-31218-131-jkZpGZ5Y6M@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31218-131@http.sourceware.org/bugzilla/>

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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
IFUNC is fine.  The problem is with x32.  On x32, PLT rewrite generates:

   0xf7fbe060 <+0>:     jmp    0x401030
   0xf7fbe065 <+5>:     int3
   0xf7fbe066 <+6>:     int3
   0xf7fbe067 <+7>:     int3
   0xf7fbe068 <+8>:     int3
   0xf7fbe069 <+9>:     int3
   0xf7fbe06a <+10>:    int3
   0xf7fbe06b <+11>:    int3
   0xf7fbe06c <+12>:    int3
   0xf7fbe06d <+13>:    int3
   0xf7fbe06e <+14>:    int3
   0xf7fbe06f <+15>:    int3

0xf7fbe060 + 0x401030 overflows.

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

  reply	other threads:[~2024-01-06 18:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-06 17:06 [Bug dynamic-link/31218] New: " hjl.tools at gmail dot com
2024-01-06 18:59 ` hjl.tools at gmail dot com [this message]
2024-01-06 22:07 ` [Bug dynamic-link/31218] PLT rewrite overflows large displacement on x32 hjl.tools at gmail dot com
2024-01-06 22:26 ` cvs-commit at gcc dot gnu.org
2024-01-06 22:26 ` hjl.tools at gmail dot com

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-31218-131-jkZpGZ5Y6M@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).