Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for SEH (0.02 sec)

  1. src/cmd/link/internal/loadpe/seh.go

    	case sys.AMD64:
    		ldr.SetAttrReachable(pdata, true)
    		if xdata != 0 {
    			ldr.SetAttrReachable(xdata, true)
    		}
    		return processSEHAMD64(ldr, pdata)
    	default:
    		// TODO: support SEH on other architectures.
    		return fmt.Errorf("unsupported architecture for SEH: %v", arch.Family)
    	}
    }
    
    func processSEHAMD64(ldr *loader.Loader, pdata sym.LoaderSym) error {
    	// The following loop traverses a list of pdata entries,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 16:20:28 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/seh.go

    		if uw == 0 {
    			continue
    		}
    		name := ctxt.SymName(uw)
    		off, cached := uwcache[name]
    		if !cached {
    			off = xdata.Size()
    			uwcache[name] = off
    			xdata.AddBytes(ldr.Data(uw))
    			// The SEH unwind data can contain relocations,
    			// make sure those are copied over.
    			rels := ldr.Relocs(uw)
    			for i := 0; i < rels.Count(); i++ {
    				r := rels.At(i)
    				rel, _ := xdata.AddRel(r.Type())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/x86/seh.go

    func (b *sehbuf) write32(v uint32) {
    	b.ctxt.Arch.ByteOrder.PutUint32(b.data[b.off:], v)
    	b.off += 4
    }
    
    func (b *sehbuf) writecode(op, value uint8) {
    	b.write8(value<<4 | op)
    }
    
    // populateSeh generates the SEH unwind information for s.
    func populateSeh(ctxt *obj.Link, s *obj.LSym) (sehsym *obj.LSym) {
    	if s.NoFrame() {
    		return
    	}
    
    	// This implementation expects the following function prologue layout:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/runtime/signal_windows.go

    	}
    
    	// VEH is called before SEH, but arm64 MSVC DLLs use SEH to trap
    	// illegal instructions during runtime initialization to determine
    	// CPU features, so if we make it to the last handler and we're
    	// arm64 and it's an illegal instruction and this is coming from
    	// non-Go code, then assume it's this runtime probing happen, and
    	// pass that onward to SEH.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  5. src/runtime/testdata/testwinlib/main.c

            c->Rsp += 8;
    #elif defined(_X86_)
            c->Eip = *(DWORD *)c->Esp;
            c->Esp += 4;
    #else
            c->Pc = c->Lr;
    #endif
    #ifdef _ARM64_
            // TODO: remove when windows/arm64 supports SEH stack unwinding.
            return EXCEPTION_CONTINUE_EXECUTION;
    #endif
        }
        return EXCEPTION_CONTINUE_SEARCH;
    }
    LONG WINAPI customContinueHandlder(struct _EXCEPTION_POINTERS *ExceptionInfo)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/mips/anames.go

    	"MULD",
    	"MULF",
    	"MULU",
    	"MULW",
    	"NEGD",
    	"NEGF",
    	"NEGW",
    	"NEGV",
    	"NOOP",
    	"NOR",
    	"OR",
    	"REM",
    	"REMU",
    	"RFE",
    	"ROTR",
    	"ROTRV",
    	"SC",
    	"SCV",
    	"SEB",
    	"SEH",
    	"SGT",
    	"SGTU",
    	"SLL",
    	"SQRTD",
    	"SQRTF",
    	"SRA",
    	"SRL",
    	"SUB",
    	"SUBD",
    	"SUBF",
    	"SUBU",
    	"SUBW",
    	"SYNC",
    	"SYSCALL",
    	"TEQ",
    	"TLBP",
    	"TLBR",
    	"TLBWI",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback_windows.go

    	if runtime.Compiler != "gc" {
    		// The exact function names are not going to be the same.
    		t.Skip("skipping for non-gc toolchain")
    	}
    	if runtime.GOARCH != "amd64" {
    		// TODO: support SEH on other architectures.
    		t.Skip("skipping on non-amd64")
    	}
    	// Only frames in the test package are checked.
    	want := []string{
    		"test._Cfunc_backtrace",
    		"test.testCallbackCallersSEH.func1.1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 16:01:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. src/cmd/link/testdata/pe-llvm/main.go

    // a.rc, simply contains a reference to its own bytes:
    //
    //    resname RCDATA a.rc
    //
    // Object dumping the resultant rsrc.syso, we can see the split sections and
    // the @feat.00 SEH symbol:
    //
    //     rsrc.syso:      file format coff-x86-64
    //
    //     architecture: x86_64
    //     start address: 0x0000000000000000
    //
    //     Export Table:
    //     Sections:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 26 18:15:09 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  9. src/runtime/runtime-seh_windows_test.go

    		if fn == 0 {
    			break
    		}
    		pcs[i] = ctx.GetPC()
    		n++
    		windows.RtlVirtualUnwind(0, base, ctx.GetPC(), fn, uintptr(unsafe.Pointer(ctx)), nil, &frame, nil)
    	}
    	return pcs[:n]
    }
    
    // SEH unwinding does not report inlined frames.
    //
    //go:noinline
    func sehf3(pan bool) []uintptr {
    	return sehf4(pan)
    }
    
    //go:noinline
    func sehf4(pan bool) []uintptr {
    	var pcs []uintptr
    	if pan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 16:52:06 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/plist.go

    		ctxt.Arch.Assemble(ctxt, s, newprog)
    		if ctxt.Errors > 0 {
    			continue
    		}
    		linkpcln(ctxt, s)
    		ctxt.populateDWARF(plist.Curfn, s)
    		if ctxt.Headtype == objabi.Hwindows && ctxt.Arch.SEH != nil {
    			s.Func().sehUnwindInfoSym = ctxt.Arch.SEH(ctxt, s)
    		}
    	}
    }
    
    func (ctxt *Link) InitTextSym(s *LSym, flag int, start src.XPos) {
    	if s == nil {
    		// func _() { }
    		return
    	}
    	if s.Func() != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top