search for: loadaddr

Displaying 17 results from an estimated 17 matches for "loadaddr".

2008 Jun 19
1
[LLVMdev] Transforming ConstantExprs to Instructions
...ething like "load i32* getelementptr ( %struct @x, i32 0, i32 2)". Now you want to replace the global @x with a local alloca %x (assuming all the appropriate safety checks are done). "load i32* getelementptr (%struct %x, i32 0, i32 2)" is illegal; it has to be split into "%loadaddr = getelementptr %struct %x, i32 0, i32 2" and "load i32* %loadaddr". -Eli
2016 Sep 30
2
Bug in 3.9.0 RTDyldMemoryManager.cpp
Hi folks, I'm still using MCJIT (I know, I know), and I spotted a crash in exception handling when I moved from llvm 3.8 to llvm 3.9. I traced it back to EH frames not being deregistered due to a (typo?) mistake in RTDyldMemoryManager.cpp: void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) override { * registerEHFramesInProcess(Addr, Size);* } ..I overrode the function to call deregister instead of register in my own MemMgr and all's now well. The crash manifests itself as a seg fault when a process causes an exception after JITted code has been removed. Che...
2008 Jun 19
0
[LLVMdev] Transforming ConstantExprs to Instructions
On Jun 18, 2008, at 1:36 AM, Matthijs Kooijman wrote: >> Is it possible to design the pass to work with both? The general >> approach >> is to make stuff handle "User"s instead of Instructions. It is >> much more >> compile time efficient to just handle the two forms rather than >> converting >> them back and forth. > With both I
2008 Jun 18
3
[LLVMdev] Transforming ConstantExprs to Instructions
Hi Chris, > > [ Snip replacing constantexprs with instructions ] > Ok, this is not possible in general though, global variable initializers > have to be constants, not instructions. Yeah, so if not all uses can be replaced, my pass will just have to skip the variable. > Is it possible to design the pass to work with both? The general approach > is to make stuff handle
2012 Feb 10
6
[PATCH v2 0/3] hvmloader: Make ROM dependencies optional
This patch set mainly allows the user to build a seabios or rombios only version of hvmloader. In addition, when building a seabios only hvmloader, Option ROMs like vgabios and etherboot are no longer required, and therefore can be disabled from the build. Dependency on the bcc compiler can also be avoided the same way. v2: Separate patches for separate issues Introduced config option to
2013 Oct 14
0
[LLVMdev] A weird, reproducable problem with MCJIT
Yaron, Did you find a way around the problem? It looks like the problem comes before processFDE because by the time it gets to processFDE the eh_frame data is already corrupted. Does ELF and MachO share the same eh_frame format? I am developing this code in parallel on an Ubuntu Linux system but I haven't tried to run it on there for a couple of weeks. I'll bring it up to date and
2015 Apr 09
3
[LLVMdev] Looking for advice on how to debug a problem with C++ style exception handling code that my compiler generates.
Hi, I’m looking for advice on how to debug a problem with my exception handling code. I’m asking a specific question here - but general advice on how to debug something like this would be greatly appreciated. Is there any way to get a list of landing pad clauses that are active at a particular point in a program? I'd like to get something like a backtrace but listing all active landing pad
2013 Oct 14
2
[LLVMdev] A weird, reproducable problem with MCJIT
...s (at least) __register_frame should be called once and not called on every FDE as in processFDE in RTDyldMemoryManager,cpp does. So RTDyldMemoryManager::registerEHFrames was modified to: void RTDyldMemoryManager::registerEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) { __register_frame(Addr); } On Windows 7 / MingW (gcc) this completely solved the problems I had with erratic exception behaviour. The second issue is a bit more complicated. With executable files, the linker combines .eh frames with four...
2007 Sep 28
5
ZFS Boot Won''t work with a straight or mirror zfsroot
...ilesystem type is zfs, partition type 0xbf grub> /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS loading ''platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS cpu: ''AuthenticAMD'' family 15 model 47 step 0 [BIOS accepted mixed-mode target setting!] [Multiboot-kluge, loadaddr=0xbffe38, text-and-data=0x161958, bss=0x0, entry=0xc00000] ''/platform/i86pc/kernel/amd64/unix -B zfs-bootfs=rootpool/21'' is loaded grub> boot Any idea what I am doing wrong? Thanks and regards Kugutsumen .... This is everything I did: # root is about 350 megs ... so it...
2006 May 26
3
FreeBSD boot loader on VT-x based Xen system
...he first word, > TAB > lists possible command completions. Anywhere else TAB lists the > possible > completions of a device/filename.] > > grub> root (hd0,1,a) > Filesystem type is ufs2, partition type 0xa5 > > grub> kernel /boot/loader > [FreeBSD-a.out, loadaddr=0x200000, text=0x1000, data=0x32000, > bss=0x0, entry =0x200000] > > grub> boot > BTX loader 1.00 Starting in protected mode (base mem=9fc00) > Arguments passed (esp=67e88): > <howto=80000000 bootdev=a0300000 junk=0 0 0 bootinfo=67ec4> > Relocated bootinfo (size=48)...
2013 Oct 14
3
[LLVMdev] A weird, reproducable problem with MCJIT
Hi, I had similar problems with EH in ELF in RTDyldMemoryManager::registerEHFrames() calling __register_frame(). I'm not sure these problems are related to this problem since your crash happens in RuntimeDyldMachO::registerEHFrames() in its own processFDE (there are two functions named processFDE(), one in RuntimeDyldMachO.cpp and one in RTDyldMemoryManager.cpp) *before*
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...loaded version + uint64_t *Placeholder = reinterpret_cast<uint64_t*>(Section.ObjAddress + + Offset); + uint64_t *Target = reinterpret_cast<uint64_t*>(Section.Address + Offset); + uint64_t FinalAddress = Section.LoadAddress + Offset; + *Target = *Placeholder + Value + Addend - FinalAddress; + break; I''d like to make my new JIT APIs more aggressive about freeing the ObjectFile instances (ideally we'd be able to free immediately after a call to loadObject), but at the moment I have to hold it at l...
2012 Feb 05
4
[PATCH RFC] hvmloader: Make ROM dependencies optional
...ader/hvmloader.c | 13 ++++++++++- 2 files changed, 38 insertions(+), 12 deletions(-) diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile index 41a4369..a8e0f97 100644 --- a/tools/firmware/hvmloader/Makefile +++ b/tools/firmware/hvmloader/Makefile @@ -29,7 +29,7 @@ LOADADDR = 0x100000 CFLAGS += $(CFLAGS_xeninclude) OBJS = hvmloader.o mp_tables.o util.o smbios.o -OBJS += 32bitbios_support.o smp.o cacheattr.o xenbus.o +OBJS += smp.o cacheattr.o xenbus.o OBJS += e820.o pci.o pir.o ctype.o ifeq ($(debug),y) OBJS += tests.o @@ -37,25 +37,41 @@ endif CIRRUSVGA_D...
2006 Aug 11
0
[PATCH] [4/5] SMBIOS -- generate SMBIOS tables
...dt.o smbios.o # Disable PIE/SSP if GCC supports them. They can break us. CFLAGS += $(call test-gcc-flag,$(CC),-nopie) @@ -42,7 +42,7 @@ CFLAGS += $(DEFINES) -I. $(XENINC) -fno CFLAGS += $(DEFINES) -I. $(XENINC) -fno-builtin -O2 -msoft-float LDFLAGS = -m32 -nostdlib -Wl,-N -Wl,-Ttext -Wl,$(LOADADDR) -SRCS = hvmloader.c acpi_madt.c mp_tables.c util.c +SRCS = hvmloader.c acpi_madt.c mp_tables.c util.c smbios.c OBJS = $(patsubst %.c,%.o,$(SRCS)) .PHONY: all diff -r 1d817bfc5ed9 tools/firmware/hvmloader/hvmloader.c --- a/tools/firmware/hvmloader/hvmloader.c Fri Aug 11 14:22:54 2006 +0100 ++...
2003 Aug 22
3
PAE removal patch for testing
...PS) + return pdeaddr; + if (*pdeaddr) { + return get_ptbase(pmap) + i386_btop(va); + } + } + return (0); +} /* * Move the kernel virtual free pointer to the next @@ -297,7 +278,9 @@ * (physical) address starting relative to 0] */ void -pmap_bootstrap(vm_paddr_t firstaddr, vm_paddr_t loadaddr) +pmap_bootstrap(firstaddr, loadaddr) + vm_offset_t firstaddr; + vm_offset_t loadaddr; { vm_offset_t va; pt_entry_t *pte; @@ -309,7 +292,7 @@ avail_start = firstaddr; /* - * The calculation of virtual_avail is wrong. It's NKPT*PAGE_SIZE too + * XXX The calculation of virtual_avail...
2012 Feb 11
14
[PATCH v3 0/5] hvmloader: Make ROM dependencies optional
This patch set mainly allows the user to build a seabios or rombios only version of hvmloader. In addition, when building a seabios only hvmloader, Option ROMs like vgabios and etherboot are no longer required, and therefore can be disabled from the build. Dependency on the bcc compiler can also be avoided the same way. v2: Separate patches for separate issues Introduced config option to
2007 Dec 09
8
zpool kernel panics.
Hi Folks, I''ve got a 3.9 Tb zpool, and it is casing kernel panics on my Solaris 10 280r (SPARC) server. The message I get on panic is this: panic[cpu1]/thread=2a100a95cc0: zfs: freeing free segment (offset=423713792 size=1024) This seems to come about when the zpool is being used or being scrubbed - about twice a day at the moment. After the reboot, the scrub seems to have