Bug 235029 - ld-elf.so.1 is loaded too low when invoked directly
Summary: ld-elf.so.1 is loaded too low when invoked directly
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 17:59 UTC by David Chisnall
Modified: 2019-01-17 17:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Chisnall freebsd_committer 2019-01-17 17:59:45 UTC
When a normal dynamically linked ELF program runs, the kernel maps ld-elf.so.1 very high in the address space, somewhere around 0x800000000 on amd64.  When the same program is run by invoking /libexec/ld-elf.so.1 {program name}, the kernel maps the rtld binary very low, around 0x1000000ish.  This is fine for some programs, but a relatively large one, such as the clang binary from the clang60 or clang70 port does not fit in the gap and crashes on startup.