[Bug 229708] Don't require the program header for ELF files fit in the first page
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Sep 4 16:48:37 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229708
--- Comment #2 from Alex S <iwtcex at gmail.com> ---
(In reply to Konstantin Belousov from comment #1)
Well, supposedly patchelf produces such executables, although reading [1]
https://github.com/NixOS/patchelf/issues/153 and especially [2] gives me the
impression this might have been fixed in the meantime.
Another potential use case is Widevine CDM (obtainable from [3] and [4]), which
I intend to test with Firefox/Chromium and my glibc ABI compatibility hack
([5], think linuxpluginwrapper, but more reliable) to see how feasible that
approach actually is.
% env LD_PRELOAD=$PWD/libwidevinecdm.so true
ld-elf.so.1: .../libwidevinecdm.so: program header too large
% readelf -h libwidevinecdm.so
...
Start of program headers: 9300548 (bytes into file)
Start of section headers: 9301776 (bytes into file)
Since this is a proprietary closed source library, I don't know how it was
built.
> Also, do you want same for binaries ?
Likely not.
[1] https://github.com/NixOS/patchelf/issues/153
[2] https://github.com/NixOS/patchelf/issues/165#issuecomment-477084014
[3] https://dl.google.com/widevine-cdm/4.10.1582.2-linux-x64.zip
[4] https://dl.google.com/widevine-cdm/4.10.1582.2-linux-ia32.zip
[5] https://github.com/shkhln/nvshim
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list