chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.09k stars 450 forks source link

ELF load command alignment not page-aligned #3695

Closed mayl0415 closed 1 month ago

mayl0415 commented 1 month ago

My operating system has the following error when loading libcef.so: "ELF load command alignment not page-aligned"

The system's paging size is 65535, but libcef.so (version 98) is 4096. Can I recompile cef and set the paging size to 65535 to solve this problem? If so, where should I modify it when compiling?

getconf PAGESIZE

65536

readelf -l /myl/jbr_jcef-17.0.6-aarch64-b469/lib/libcef.so

Elf file type is DYN (Shared object file) Entry point 0x0 There are 11 program headers, starting at offset 64

Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align PHDR 0x0000000000000040 0x0000000000000040 0x0000000000000040 0x0000000000000268 0x0000000000000268 R 0x8 LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000001e83d44 0x0000000001e83d44 R 0x1000 LOAD 0x0000000001e83d80 0x0000000001e84d80 0x0000000001e84d80 0x0000000007cd2540 0x0000000007cd2540 R E 0x1000

magreenblatt commented 1 month ago

I don't know. I suggest you look at how Chromium is compiled for your architecture and try to use the same settings when building CEF.