VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Source/C/GenFw/Elf64Convert.c

    r105670 r108794  
    1212
    1313#ifndef __GNUC__
     14#define RUNTIME_FUNCTION  _WINNT_DUP_RUNTIME_FUNCTION
    1415#include <windows.h>
     16#undef RUNTIME_FUNCTION
    1517#include <io.h>
    1618#endif
     
    14951497            VerboseMsg ("Relocation:  0x%08X", *(UINT32 *)Targ);
    14961498            break;
     1499          case R_X86_64_REX_GOTPCRELX:
     1500            //
     1501            // This is a relaxable GOTPCREL relocation, and the linker may have
     1502            // applied this relaxation without updating the relocation type.
     1503            // In the position independent code model, only transformations
     1504            // from MOV to LEA are possible for REX-prefixed instructions.
     1505            //
     1506            if (Targ[-2] == 0x8d) { // LEA
     1507              break;
     1508            }
     1509            /* fall through */ /* VBox added */
    14971510          case R_X86_64_GOTPCREL:
    14981511          case R_X86_64_GOTPCRELX:
    1499           case R_X86_64_REX_GOTPCRELX:
    15001512            VerboseMsg ("R_X86_64_GOTPCREL family");
    15011513            VerboseMsg ("Offset: 0x%08X, Addend: 0x%08X",
Note: See TracChangeset for help on using the changeset viewer.

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