Displaying 6 results from an estimated 6 matches for "image_scn_cnt_code".
2014 Aug 26
2
[LLVMdev] possible bug in COFFObjectFile::getSymbolType()
...ked as ST_Data instead of ST_Other.
From: David Majnemer [mailto:david.majnemer at gmail.com]
Sent: Friday, August 22, 2014 5:44 PM
To: Ted Woodward
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev] possible bug in COFFObjectFile::getSymbolType()
COFF sections also contain stuff like IMAGE_SCN_CNT_CODE and IMAGE_SCN_CNT_INITIALIZED_DATA. Are either of those set on the section in question?
It may make more sense to try to key off of those section characteristics as well.
On Fri, Aug 22, 2014 at 9:55 AM, Ted Woodward <ted.woodward at codeaurora.org> wrote:
I’m working on adding data...
2014 Aug 22
2
[LLVMdev] possible bug in COFFObjectFile::getSymbolType()
I'm working on adding data detection to llvm-objdump, so it prints out raw
data for symbols with type SymbolRef::ST_Data instead of disassembling them.
This causes llvm/test/MC/ARM/Windows/mov32t-range.s to fail, because the
symbol "truncation" comes back as SymbolRef::ST_Data, and the code gets
dumped as bytes instead of disassembled.
I traced the problem back to
2010 May 02
0
[LLVMdev] Win32 COFF Support
...; MCSectionCOFF const & Section = dynamic_cast <MCSectionCOFF const &> (SectionData.getSection ());
LLVM normally compiles w/o RTTI, so this won't work
> CoffSection->Header.Characteristics |=
> coff::IMAGE_SCN_CNT_CODE |
> coff::IMAGE_SCN_MEM_READ |
> coff::IMAGE_SCN_MEM_EXECUTE |
> false;
Was "| false" intentional? Why?
>...
2013 Nov 27
0
[PATCH 2/4] efi: Location, size and alignment of .text section
...zeof(t_sec));
strcpy((char *)t_sec.name, ".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 EL...
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