Displaying 6 results from an estimated 6 matches for "image_scn_mem_execut".
Did you mean:
image_scn_mem_execute
2014 Aug 22
2
[LLVMdev] possible bug in COFFObjectFile::getSymbolType()
...::getSymbolType() in
llvm/lib/Object/COFFObjectFile.cpp :
if (Characteristics & COFF::IMAGE_SCN_MEM_READ &&
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE) // Read only.
Result = SymbolRef::ST_Data;
I think it should also check for ~Characteristics &
COFF::IMAGE_SCN_MEM_EXECUTE. The symbol, in this case, is READ, EXECUTE,
!WRITE.
if (Characteristics & COFF::IMAGE_SCN_MEM_READ &&
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE &&
~Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) // Read only, not
execute.
Result = Sy...
2014 Aug 26
2
[LLVMdev] possible bug in COFFObjectFile::getSymbolType()
...::getSymbolType() in llvm/lib/Object/COFFObjectFile.cpp :
if (Characteristics & COFF::IMAGE_SCN_MEM_READ &&
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE) // Read only.
Result = SymbolRef::ST_Data;
I think it should also check for ~Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE. The symbol, in this case, is READ, EXECUTE, !WRITE.
if (Characteristics & COFF::IMAGE_SCN_MEM_READ &&
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE &&
~Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) // Read only, not execute.
Result = Sy...
2010 May 02
0
[LLVMdev] Win32 COFF Support
...> CoffSection->Header.Characteristics |=
> coff::IMAGE_SCN_CNT_CODE |
> coff::IMAGE_SCN_MEM_READ |
> coff::IMAGE_SCN_MEM_EXECUTE |
> false;
Was "| false" intentional? Why?
> default:
> report_fatal_error_dbg ("unsupported section alignment");
Use llvm_unreachable()
>...
2013 Nov 27
0
[PATCH 2/4] efi: Location, size and alignment of .text section
...text");
- t_sec.virtual_sz = total_sz;
- t_sec.raw_data_sz = total_sz;
+ t_sec.virtual_sz = data_size;
+ t_sec.virtual_address = hdr_sz;
+ t_sec.raw_data_sz = t_sec.virtual_sz;
+ t_sec.raw_data = t_sec.virtual_address;
t_sec.characteristics = IMAGE_SCN_CNT_CODE |
IMAGE_SCN_ALIGN_16BYTES | IMAGE_SCN_MEM_EXECUTE |
IMAGE_SCN_MEM_READ;
@@ -163,6 +159,16 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
fwrite(&c_rel, sizeof(c_rel), 1, f);
fwrite(&dummy, sizeof(dummy), 1, f);
+ /*
+ * Add some padding to align the ELF as needed
+ */
+ if (ftell(f) > t_sec.virtual_...
2010 May 01
4
[LLVMdev] Win32 COFF Support
Hi All,
I have created a minimally functional Win32 COFF Exporter using the new MC
framework. I made some minor changes to other libraries to allow me to plug
it in without building it as part of the LLVM project. I wanted to share it
but wasn't sure how to go about doing so, so I have attached the code to
this message.
Any feedback on would be appreciated.
-------------- next part
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF
perform a few consistency checks, syslinux was unable to run on it. I don't
pretend to have a thorough understanding of the PE+ headers, some bugs may
remain. :)
Celelibi (4):
efi: Fix PE header field rva_and_sizes_nr
efi: Location, size and alignment of .text section
efi: Useless relocations in PE file
efi: PE