VirtualBox

Changeset 34211 in vbox


Ignore:
Timestamp:
Nov 19, 2010 4:55:04 PM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: don't try to change linker symbol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/fakedri_drv.c

    r34210 r34211  
    186186    char patch[FAKEDRI_JMP64_PATCH_SIZE];
    187187    void *shift;
     188    int ignore_size=false;
    188189
    189190#ifndef VBOX_NO_MESA_PATCH_REPORTS
     
    249250                    /*it's a rel8 jmp, so we're going to patch the place it targets instead of jmp itself*/
    250251                    dlip.dli_saddr = (void*) ((intptr_t)dlip.dli_saddr + ((char*)dlip.dli_saddr)[1] + 2);
    251                     sym->st_size = FAKEDRI_JMP64_PATCH_SIZE;
     252                    ignore_size = true;
    252253                }
    253254                else
     
    275276        {
    276277            /*try to insert 64bit abs jmp*/
    277             if (sym->st_size>=FAKEDRI_JMP64_PATCH_SIZE)
     278            if (sym->st_size>=FAKEDRI_JMP64_PATCH_SIZE || ignore_size)
    278279            {
    279280# ifndef VBOX_NO_MESA_PATCH_REPORTS
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette