Displaying 2 results from an estimated 2 matches for "stub_segv_handl".
Did you mean:
stub_segv_handler
2009 May 14
0
[LLVMdev] Grouping related functions in a code section
...STUB_CODE, UM_KERN_PAGE_SIZE,
PROT_EXEC, MAP_FIXED | MAP_PRIVATE, fd, offset);
The previous code maps the page of code into memory: the page address is
stored in the linker-script-defined __syscall_stub_start symbol. Then we
have:
unsigned long v = STUB_CODE +
(unsigned long) stub_segv_handler - // a function stored in this page
(unsigned long) &__syscall_stub_start; // from linker script
set_sigstack((void *) STUB_DATA, UM_KERN_PAGE_SIZE);
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_ONSTACK | SA_NODEFER;
sa.sa_handler = (void *) v; // Use this function.
The stub_segv_hand...
2009 May 11
3
[LLVMdev] Assign symbol the address of a section
Hello,
The binaries produced by LLVM and other compilers divide code up into
various sections, e.g. the .text section.
What is the recommended approach to assigning a symbol the address of a
section using LLVM? Using GCC/LD, you can do this with a linker script,
e.g. in a linker script you can do:
_text = .;
_stext = .;
These symbols are then available in the corresponding C code using an