public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/29662] New: s390 glibc wrongly assumes GOT[0] is _DYNAMIC
@ 2022-10-08  1:28 rui314 at gmail dot com
  2022-10-12 14:32 ` [Bug libc/29662] " krebbel at linux dot ibm.com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rui314 at gmail dot com @ 2022-10-08  1:28 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 29662
           Summary: s390 glibc wrongly assumes GOT[0] is _DYNAMIC
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: rui314 at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

The following piece of code in glibc/s390-64 assumes that the first entry of
.got is the address of .dynamic. There's no such guarantee in the psABI, so it
is arguably wrong. It just happens that GNU ld does that.

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/s390/s390-64/dl-machine.h;h=74be0552dc42246df8ee24f871a2391798e3441b;hb=HEAD#l50

We had very similar code for ARM64, but that has been replaced in
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=43d06ed218fc8be58987bdfd00e21e5720f0b862.
I think we want to do the same thing for s390.

I noticed this issue when porting my mold linker to s390x.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-21  9:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-08  1:28 [Bug libc/29662] New: s390 glibc wrongly assumes GOT[0] is _DYNAMIC rui314 at gmail dot com
2022-10-12 14:32 ` [Bug libc/29662] " krebbel at linux dot ibm.com
2022-10-13  1:21 ` rui314 at gmail dot com
2022-11-21  6:21 ` i at maskray dot me
2022-11-21  7:56 ` rui314 at gmail dot com
2022-11-21  9:28 ` i at maskray dot me

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).