Displaying 10 results from an estimated 10 matches for "melf_x86_64".
Did you mean:
elf_x86_64
2018 Jun 05
2
lld mishandling R_X86_64_PC32 relocations
...Offset Info Type Sym. Value Sym. Name
000000000001 000300000002 R_X86_64_PC32 0000000000000000 .text.foo
3. Link with a just-built ld.lld and note that the relocation has been misapplied. It's now calling foo+4 rather than foo.
$ ./llvm-build/bin/ld.lld -melf_x86_64 -o bug-lld bug-64.o
$ x86_64-elf-objdump -M i386 -d bug-64-lld | grep -A1 -e '<_start>:'
0000000000201000 <_start>:
201000: e8 0f 00 00 00 call 201014 <foo+0x4>
If you link with GNU ld instead, the relocation is applied correctly.
$ x86_64-elf-ld -melf_x86_64...
2016 May 13
2
How to debug if LTO generate wrong code?
...-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=large -g -Os -flto
*_CLANGLTO38_X64_DLINK_FLAGS = -flto -nostdlib -Wl,-n -Wl,-q -Wl,--gc-sections -Wl,-z,common-page-size=0x40 -Wl,--entry,$(IMAGE_ENTRY_POINT) -Wl,-u,$(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map -Wl,-melf_x86_64 -Wl,--oformat=elf64-x86-64
*_CLANGLTO38_X64_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h -m64 -target x86_64-pc-linux-gnu
*_CLANGLTO38_X64_RC_FLAGS = -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii
*_CLANGLTO38_X64_NASM_FLAGS...
2019 Jan 28
4
lld write wrong symbol value in .data section if enable -pie
....0/../../.. -L/home/jshi19/llvm/releaseinstall/bin/../lib -L/lib -L/usr/lib -q --gc-sections -z max-page-size=0x40 --entry _ModuleEntryPoint -Map /home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorld/DEBUG/HelloWorld.map --whole-archive -O0 -melf_x86_64 --oformat elf64-x86-64 --start-group @/home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorld/OUTPUT/static_library_files.lst --end-group --defsym=PECOFF_HEADER_SIZE=0x228 --script=/home/jshi19/wksp_efi/lgao4/edk2/BaseTools/Scripts/GccBase.lds...
2019 Jan 29
3
lld write wrong symbol value in .data section if enable -pie
....0/../../.. -L/home/jshi19/llvm/releaseinstall/bin/../lib -L/lib -L/usr/lib -q --gc-sections -z max-page-size=0x40 --entry _ModuleEntryPoint -Map /home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorld/DEBUG/HelloWorld.map --whole-archive -O0 -melf_x86_64 --oformat elf64-x86-64 --start-group @/home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorld/OUTPUT/static_library_files.lst --end-group --defsym=PECOFF_HEADER_SIZE=0x228 --script=/home/jshi19/wksp_efi/lgao4/edk2/BaseTools/Scripts/GccBase.lds...
2012 Aug 29
4
xen debugger (kdb/xdb/hdb) patch for c/s 25467
Hi Guys,
Thanks for the interest in the xen hypervisor debugger, prev known as
kdb. Btw. I''m gonna rename it to xdb for xen-debugger or hdb for
hypervisor debugger. KDB is confusing people with linux kdb debugger
and I often get emails where people think they need to apply linux kdb
patch also...
Anyways, attaching patch that is cleaned up of my debug code that I
accidentally left in
2019 Jan 29
2
lld write wrong symbol value in .data section if enable -pie
....0/../../.. -L/home/jshi19/llvm/releaseinstall/bin/../lib -L/lib -L/usr/lib -q --gc-sections -z max-page-size=0x40 --entry _ModuleEntryPoint -Map /home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorld/DEBUG/HelloWorld.map --whole-archive -O0 -melf_x86_64 --oformat elf64-x86-64 --start-group @/home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorld/OUTPUT/static_library_files.lst --end-group --defsym=PECOFF_HEADER_SIZE=0x228 --script=/home/jshi19/wksp_efi/lgao4/edk2/BaseTools/Scripts/GccBase.lds...
2016 May 16
2
How to debug if LTO generate wrong code?
...la/show_bug.cgi?id=20070
If I enforce the -O0 to disable the optimization in LTO, the ld fail to link:
~/clang38/bin/clang -o Hello.dll -flto -O0 -nostdlib -Wl,-n -Wl,-q -Wl,--gc-sections -Wl,-z,common-page-size=0x40 -Wl,--entry,_ModuleEntryPoint -Wl,-u,_ModuleEntryPoint -Wl,-Map,Hello.map -Wl,-melf_x86_64 -Wl,--oformat=elf64-x86-64 -Wl,--start-group,, at static_library_files.lst -Wl,--end-group
BaseLib.lib: error adding symbols: File format not recognized
clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
But if I enable the -O1, -O2, or higher -On, the ld link...
2012 Apr 18
1
Ether setup
...eorder-blocks -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -g -D__XEN__ -c /home/user/ether/xen-3.1.0-src/xen/common/symbols-dummy.c -o /home/user/ether/xen-3.1.0-src/xen/common/symbols-dummy.o
make[5]: Leaving directory `/home/user/ether/xen-3.1.0-src/xen/arch/x86''
ld -melf_x86_64 -T xen.lds -N \
boot/x86_64.o /home/user/ether/xen-3.1.0-src/xen/common/built_in.o /home/user/ether/xen-3.1.0-src/xen/drivers/built_in.o /home/user/ether/xen-3.1.0-src/xen/arch/x86/built_in.o \
/home/user/ether/xen-3.1.0-src/xen/common/symbols-dummy.o -o /home/user/ether/xen-3...
2012 Nov 26
0
How to set GCC version for ovmf compilation
...instead get a python error.
Gcc46 and gcc47 error when running make dist-tools
"/usr/bin/gcc" -c -x assembler -imacros /home/kristian/xen/xen-unstable.hg/tools/firmware/ovmf-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/DEBUG/AutoGen.h -m64 --64 -melf_x86_64 -o
/home/kristian/xen/xen-unstable.hg/tools/firmware/ovmf-remote/Build/OvmfX64/DEBUG_GCC44/X64/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/OUTPUT/X64/InitializeFpu.obj -I/home/kristian/xen/xen-unstable.hg/tools/firmware/ovmf-remote/UefiCpuPkg/Library/BaseUefiCpuLib/X64 -I/home/kristian/xen/xen...
2015 Feb 12
4
Bug#778181: xen: ftbfs with GCC-5
...o-builtin -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ -include /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/config.h -nostdinc -DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -DHAS_PCI -DHAS_IOPORTS -MMD -MF .head.o.d -c head.S -o head.o
ld -melf_x86_64 -r -o built_in.o head.o
make[6]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/boot'
/usr/bin/make -f /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/Rules.mk -C /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/...