Skip to content

T8 - #350

Merged
LaurenIsACoder merged 6 commits into
lat-opensource:masterfrom
ganjue66da:t8
Jul 28, 2026
Merged

T8#350
LaurenIsACoder merged 6 commits into
lat-opensource:masterfrom
ganjue66da:t8

Conversation

@ganjue66da

Copy link
Copy Markdown
Contributor

No description provided.

ganjue66da and others added 6 commits July 28, 2026 09:45
Wine maps PE headers without execute permission before mapping their
code sections. Parse that initial mapping explicitly so QCefViewTest
records the section RVAs and associates later executable mappings with
libcef.

Signed-off-by: Wenqiang Wei <weiwenqiang@mail.ustc.edu.cn>
Wine loads PE sections with pread into writable memory before
mprotect makes the pages executable. Keep segment tracking enabled
for Wine pread calls so libcef enters the AOT segment tree.

Keep non-Wine behavior restricted to executable pages. Only recover
AOT TBs after the destination page is executable.

Signed-off-by: Wenqiang Wei <weiwenqiang@mail.ustc.edu.cn>
Allow a selected Wine PE image to request its preferred base only
after validating the PE image range and relocation directory. Preserve
ASLR when validation fails or the guest range is already occupied.

Translate guest MAP_FIXED_NOREPLACE atomically so Wine can relocate
instead of overwriting a pre-reserved host range.

Signed-off-by: Wenqiang Wei <weiwenqiang@mail.ustc.edu.cn>
Separate libcef AOT cache names for browser, GPU, renderer, and
utility CEF processes. Each role executes a distinct working set and
now loads only its matching translated TBs.

Keep the behavior opt-in through LATX_AOT_PE_PROFILE so existing
address-based PE caches remain compatible.

Signed-off-by: Wenqiang Wei <weiwenqiang@mail.ustc.edu.cn>
Accept LATX_WINE_PE_FIXED_ADDRESS as basename@address so a
Wine PE can be loaded at a caller-selected guest address.

When Wine reads the PE header, match the DLL basename, validate
the requested address, update OptionalHeader.ImageBase, and clear
DYNAMIC_BASE. This keeps LATX_WINE_PE_FIXED_BASE for callers that
want to use the original image base.

Usage:
  LATX_WINE_PE_FIXED_ADDRESS=libcef.dll@0x6ab5f000
Signed-off-by: Wenqiang Wei <weiwenqiang@mail.ustc.edu.cn>
Signed-off-by: Wenqiang Wei <weiwenqiang@mail.ustc.edu.cn>
@LaurenIsACoder
LaurenIsACoder merged commit 796b92f into lat-opensource:master Jul 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants