public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/30452] New: elf/tst-map-32bit-1a fails with binutils-2.30-117.el8.x86_64
@ 2023-05-16 14:13 fweimer at redhat dot com
  2023-05-16 14:16 ` [Bug dynamic-link/30452] LD_PREFER_MAP_32BIT_EXEC does not work with 2MiB load segment alignment fweimer at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2023-05-16 14:13 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 30452
           Summary: elf/tst-map-32bit-1a fails with
                    binutils-2.30-117.el8.x86_64
           Product: glibc
           Version: 2.38
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
            Target: x86_64-linux-gnu

For some reason, BFD ld produces load segments which are 2 MiB aligned:

  LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x000ff0
0x000ff0 R E 0x200000
  LOAD           0x001e00 0x0000000000201e00 0x0000000000201e00 0x000270
0x000280 RW  0x200000

This means that the fast path in _dl_map_segment is not taken, and the
combination of address zero with MAP_DENYWRITE is never used, so MAP_32BIT
handling does not kick in.

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

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

end of thread, other threads:[~2023-06-30 17:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16 14:13 [Bug dynamic-link/30452] New: elf/tst-map-32bit-1a fails with binutils-2.30-117.el8.x86_64 fweimer at redhat dot com
2023-05-16 14:16 ` [Bug dynamic-link/30452] LD_PREFER_MAP_32BIT_EXEC does not work with 2MiB load segment alignment fweimer at redhat dot com
2023-05-17 18:38 ` hjl.tools at gmail dot com
2023-05-17 18:45 ` fweimer at redhat dot com
2023-05-17 20:16 ` hjl.tools at gmail dot com
2023-05-18 17:22 ` hjl.tools at gmail dot com
2023-06-30 17:43 ` cvs-commit at gcc dot gnu.org

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