Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947998 - app-emulation/virtualbox-guest-additions-7.1.4[gui,x86]: QA Notice: The following files contain runtime text relocations
Summary: app-emulation/virtualbox-guest-additions-7.1.4[gui,x86]: QA Notice: The follo...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-12 17:27 UTC by Viorel Munteanu
Modified: 2025-01-12 17:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.bz2,105.99 KB, application/x-bzip2)
2025-01-12 17:27 UTC, Viorel Munteanu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viorel Munteanu gentoo-dev 2025-01-12 17:27:07 UTC
Created attachment 916407 [details]
build.log and emerge --info

* QA Notice: The following files contain runtime text relocations
 *  Text relocations force the dynamic linker to perform extra
 *  work at startup, waste system resources, and may pose a security
 *  risk.  On some architectures, the code may not even function
 *  properly, if at all.
 *  For more information, see:
 * 
 *    https://wiki.gentoo.org/wiki/Hardened/HOWTO_locate_and_fix_textrels
 * 
 *  Please include the following list of files in your report:
 * TEXTREL usr/bin/VBoxClient
Comment 1 Viorel Munteanu gentoo-dev 2025-01-12 17:37:13 UTC
I looked into it a bit, it seems they added a lazy load generator that generates .asm files with 32-bit non-PIC code like this:

___LazyLoad___XChangeProperty:
%ifdef RT_ARCH_AMD64
    lea     rax, [g_szXChangeProperty wrt rip]
    lea     r10, [NAME(g_pfnXChangeProperty) wrt rip]
    call    LazyLoadResolver
%elifdef RT_ARCH_X86
    push    g_szXChangeProperty
    push    NAME(g_pfnXChangeProperty)
    call    LazyLoadResolver
    add     esp, 8h
%else
 %error "Unsupported architecture"
%endif
    jmp     NAME(XChangeProperty)

I am not inclined to fix this, it is only on x86.  Patches welcome.