Displaying 6 results from an estimated 6 matches for "section_iterator".
2012 Jun 12
4
[LLVMdev] Questions about llvm/Object/COFF.h
So, I'm trying to use this file to look inside COFF files.
Got the header. OK.
Now I want to look at the sections.
Look, there's a section iterator. I can use that!
So, I write:
for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); ++iter )
and it doesn't compile. There's no ++ for section iterators.
Apparently, you're supposed to write.
for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); iter.increment(ec))
Srs...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...ll Clow <mclow.lists at gmail.com>wrote:
> So, I'm trying to use this file to look inside COFF files.
> Got the header. OK.
>
> Now I want to look at the sections.
> Look, there's a section iterator. I can use that!
>
> So, I write:
> for (llvm::object::section_iterator iter = Obj.begin_sections ();
> iter != Obj.end_sections(); ++iter )
>
> and it doesn't compile. There's no ++ for section iterators.
> Apparently, you're supposed to write.
> for (llvm::object::section_iterator iter = Obj.begin_sections ();
> iter != Obj.end_se...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...ll Clow <mclow.lists at gmail.com> wrote:
> So, I'm trying to use this file to look inside COFF files.
> Got the header. OK.
>
> Now I want to look at the sections.
> Look, there's a section iterator. I can use that!
>
> So, I write:
> for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); ++iter )
>
> and it doesn't compile. There's no ++ for section iterators.
> Apparently, you're supposed to write.
> for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections();...
2012 Jun 13
1
[LLVMdev] Questions about llvm/Object/COFF.h
...wrote:
> > So, I'm trying to use this file to look inside COFF files.
> > Got the header. OK.
> >
> > Now I want to look at the sections.
> > Look, there's a section iterator. I can use that!
> >
> > So, I write:
> > for (llvm::object::section_iterator iter = Obj.begin_sections ();
> iter != Obj.end_sections(); ++iter )
> >
> > and it doesn't compile. There's no ++ for section iterators.
> > Apparently, you're supposed to write.
> > for (llvm::object::section_iterator iter = Obj.begin_sections ();
>...
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...// Finally compares the Symbol value and the target symbol offset
// to check if this .opd entry refers to the symbol the relocation
// points to.
- if (Rel.Addend != (intptr_t)TargetSymbolOffset)
+ if (Rel.Addend != (int64_t)TargetSymbolOffset)
continue;
section_iterator tsi(Obj.end_sections());
@@ -757,17 +783,19 @@ void RuntimeDyldELF::resolveSystemZReloc
void RuntimeDyldELF::resolveRelocation(const RelocationEntry &RE,
uint64_t Value) {
const SectionEntry &Section = Sections[RE.SectionID];
- return resolveRelo...
2013 Feb 06
0
[LLVMdev] [llvm] r174463 - Initial support for DWARF CFI parsing and dumping in LLVM
...>> DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) :
>> - IsLittleEndian(Obj->isLittleEndian()) {
>> + IsLittleEndian(Obj->isLittleEndian()),
>> + AddressSize(Obj->getBytesInAddress()) {
>> error_code ec;
>> for (object::section_iterator i = Obj->begin_sections(),
>> e = Obj->end_sections();
>> @@ -459,6 +485,8 @@ DWARFContextInMemory::DWARFContextInMemo
>> LineSection = data;
>> else if (name == "debug_aranges")
>> ARangeSection = data;
>> + el...