public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/29648] New: Static-pie builds contain many redundant GOT references
@ 2022-10-03 15:40 wdijkstr at arm dot com
  2022-11-08 14:25 ` [Bug build/29648] " schwab@linux-m68k.org
  2022-11-08 14:33 ` wdijkstr at arm dot com
  0 siblings, 2 replies; 3+ messages in thread
From: wdijkstr at arm dot com @ 2022-10-03 15:40 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 29648
           Summary: Static-pie builds contain many redundant GOT
                    references
           Product: glibc
           Version: 2.35
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: wdijkstr at arm dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

The static-pie changes introduced ~1200 unnecessary GOT references in the
lib/*.a files. Even --disable-default-pie results in ~288 GOT references. GLIBC
2.34 and earlier contain zero GOT accesses as expected.

One issue is that "hidden" attributes are ignored with static-pie, which
results in codequality of the static-pie build being worse than fPIC...

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

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

* [Bug build/29648] Static-pie builds contain many redundant GOT references
  2022-10-03 15:40 [Bug build/29648] New: Static-pie builds contain many redundant GOT references wdijkstr at arm dot com
@ 2022-11-08 14:25 ` schwab@linux-m68k.org
  2022-11-08 14:33 ` wdijkstr at arm dot com
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2022-11-08 14:25 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
What does lib/*.a refer to?

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

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

* [Bug build/29648] Static-pie builds contain many redundant GOT references
  2022-10-03 15:40 [Bug build/29648] New: Static-pie builds contain many redundant GOT references wdijkstr at arm dot com
  2022-11-08 14:25 ` [Bug build/29648] " schwab@linux-m68k.org
@ 2022-11-08 14:33 ` wdijkstr at arm dot com
  1 sibling, 0 replies; 3+ messages in thread
From: wdijkstr at arm dot com @ 2022-11-08 14:33 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Wilco <wdijkstr at arm dot com> ---
(In reply to Andreas Schwab from comment #1)
> What does lib/*.a refer to?

libc.a and libm.a are the 2 main ones, but there are a few smaller ones in the
install directory.

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

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

end of thread, other threads:[~2022-11-08 14:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-03 15:40 [Bug build/29648] New: Static-pie builds contain many redundant GOT references wdijkstr at arm dot com
2022-11-08 14:25 ` [Bug build/29648] " schwab@linux-m68k.org
2022-11-08 14:33 ` wdijkstr at arm dot com

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