#ifndef __GENELF_H__ #define __GENELF_H__ /* genelf.c */ int jit_write_elf(int fd, uint64_t code_addr, const char *sym, const void *code, int csize, void *debug, int nr_debug_entries, void *unwinding, uint64_t unwinding_header_size, uint64_t unwinding_size); #ifdef HAVE_DWARF_SUPPORT /* genelf_debug.c */ int jit_add_debug_info(Elf *e, uint64_t code_addr, void *debug, int nr_debug_entries); #endif #if defined(__arm__) #define GEN_ELF_ARCH EM_ARM #define GEN_ELF_CLASS ELFCLASS32 #elif defined(__aarch64__) #define GEN_ELF_ARCH EM_AARCH64 #define GEN_ELF_CLASS ELFCLASS64 #elif defined(__x86_64__) #define GEN_ELF_ARCH EM_X86_64 #define GEN_ELF_CLASS ELFCLASS64 #elif defined(__i386__) #define GEN_ELF_ARCH EM_386 #define GEN_ELF_CLASS ELFCLASS32 #elif defined(__powerpc64__) #define GEN_ELF_ARCH EM_PPC64 #define GEN_ELF_CLASS ELFCLASS64 #elif defined(__powerpc__) #define GEN_ELF_ARCH EM_PPC #define GEN_ELF_CLASS ELFCLASS32 #else #error "unsupported architecture" #endif #if __BYTE_ORDER == __BIG_ENDIAN #define GEN_ELF_ENDIAN ELFDATA2MSB #else #define GEN_ELF_ENDIAN ELFDATA2LSB #endif #if GEN_ELF_CLASS == ELFCLASS64 #define elf_newehdr elf64_newehdr #define elf_getshdr elf64_getshdr #define Elf_Ehdr Elf64_Ehdr #define Elf_Shdr Elf64_Shdr #define Elf_Sym Elf64_Sym #define ELF_ST_TYPE(a) ELF64_ST_TYPE(a) #define ELF_ST_BIND(a) ELF64_ST_BIND(a) #define ELF_ST_VIS(a) ELF64_ST_VISIBILITY(a) #else #define elf_newehdr elf32_newehdr #define elf_getshdr elf32_getshdr #define Elf_Ehdr Elf32_Ehdr #define Elf_Shdr Elf32_Shdr #define Elf_Sym Elf32_Sym #define ELF_ST_TYPE(a) ELF32_ST_TYPE(a) #define ELF_ST_BIND(a) ELF32_ST_BIND(a) #define ELF_ST_VIS(a) ELF32_ST_VISIBILITY(a) #endif /* The .text section is directly after the ELF header */ #define GEN_ELF_TEXT_OFFSET sizeof(Elf_Ehdr) #endif linux/net-next.git/commit/tools/arch/s390?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/arch/s390?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/arch/s390'> <input type='hidden' name='id' value='0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/arch?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'>arch</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/arch/s390?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9'>s390</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/arch/s390?id=0354e4d19cd5de51d6096a07ba44eda0ee61a6e9&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr> ss='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='f2557779e1a9cfbf69c99b74da26cc1b2b10e752'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Linus Torvalds <torvalds@linux-foundation.org></td><td class='right'>2017-02-02 12:34:27 -0800</td></tr> <tr><th>committer</th><td>Linus Torvalds <torvalds@linux-foundation.org></td><td class='right'>2017-02-02 12:34:27 -0800</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/musb/musb_core.c?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752'>f2557779e1a9cfbf69c99b74da26cc1b2b10e752</a> (<a href='/cgit.cgi/linux/net-next.git/patch/drivers/usb/musb/musb_core.c?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752'>8ddca65c897199add553948c429072b8bd463692</a> /<a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/musb/musb_core.c?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752'>drivers/usb/musb/musb_core.c</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/musb/musb_core.c?id=6d04dfc8966019b8b0977b2cb942351f13d2b178'>6d04dfc8966019b8b0977b2cb942351f13d2b178</a> (<a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/musb/musb_core.c?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752&id2=6d04dfc8966019b8b0977b2cb942351f13d2b178'>diff</a>)</td></tr><tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/musb/musb_core.c?id=030305d69fc6963c16003f50d7e8d74b02d0a143'>030305d69fc6963c16003f50d7e8d74b02d0a143</a> (<a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/musb/musb_core.c?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752&id2=030305d69fc6963c16003f50d7e8d74b02d0a143'>diff</a>)</td></tr></table> <div class='commit-subject'>Merge tag 'pci-v4.10-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci</div><div class='commit-msg'>Pull PCI fix from Bjorn Helgaas: "Configure ASPM on the link from a PCI-to-PCIe bridge (avoids a NULL pointer dereference on topologies including these bridges)" * tag 'pci-v4.10-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe hierarchies </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=f2557779e1a9cfbf69c99b74da26cc1b2b10e752'>Diffstat</a> (limited to 'drivers/usb/musb/musb_core.c')</div><table summary='diffstat' class='diffstat'>