Displaying 14 results from an estimated 14 matches for "numberofauxsymbols".
2011 Oct 18
3
[LLVMdev] non-POD type with llvm-objdump
...lt;< "(ty " << format("%3x", symbol->Type.ComplexType) << ")"
<< "(scl " << format("%3x", symbol->StorageClass) << ") "
<< "(nx " << unsigned(symbol->NumberOfAuxSymbols) << ") "
<< "0x" << format("%08x", symbol->Value) << " "
<< name << "\n";
Are trying to call the format function with
struct coff_symbol {
struct StringTableOffset {
support::u...
2011 Oct 19
0
[LLVMdev] non-POD type with llvm-objdump
...uot;(ty " << format("%3x", symbol->Type.ComplexType) << ")"
> << "(scl " << format("%3x", symbol->StorageClass) << ") "
> << "(nx " << unsigned(symbol->NumberOfAuxSymbols) << ") "
> << "0x" << format("%08x", symbol->Value) << " "
> << name << "\n";
> Are trying to call the format function with
> struct coff_symbol {
> struct StringTable...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>
>>>>> But I checked the code for coff2yaml, and I see this:
>>>>>
>>>>> } else if (Symbol.isSectionDefinition()) {
>>>>> // This symbol represents a section definition.
>>>>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>>>>> "Expected a single aux symbol to describe this
>>>>> section!");
>>>>> const object::coff_aux_section_definition *ObjSD =
>>>>> reinterpret_cast<const object::coff_aux...
2018 Jan 26
3
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...gt;>>> But I checked the code for coff2yaml, and I see this:
>>>>>>
>>>>>> } else if (Symbol.isSectionDefinition()) {
>>>>>> // This symbol represents a section definition.
>>>>>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>>>>>> "Expected a single aux symbol to describe this
>>>>>> section!");
>>>>>> const object::coff_aux_section_definition *ObjSD =
>>>>>> reinterpret_cast<const...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...But I checked the code for coff2yaml, and I see this:
>>>>>>>
>>>>>>> } else if (Symbol.isSectionDefinition()) {
>>>>>>> // This symbol represents a section definition.
>>>>>>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>>>>>>> "Expected a single aux symbol to describe this
>>>>>>> section!");
>>>>>>> const object::coff_aux_section_definition *ObjSD =
>>>>>>> reinterpre...
2018 Jan 26
1
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...you astray :)
>>>>
>>>> But I checked the code for coff2yaml, and I see this:
>>>>
>>>> } else if (Symbol.isSectionDefinition()) {
>>>> // This symbol represents a section definition.
>>>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>>>> "Expected a single aux symbol to describe this
>>>> section!");
>>>> const object::coff_aux_section_definition *ObjSD =
>>>> reinterpret_cast<const object::coff_aux_section_definit...
2018 Jan 26
4
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...e code for coff2yaml, and I see this:
>>>>>>>>
>>>>>>>> } else if (Symbol.isSectionDefinition()) {
>>>>>>>> // This symbol represents a section definition.
>>>>>>>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>>>>>>>> "Expected a single aux symbol to describe this
>>>>>>>> section!");
>>>>>>>> const object::coff_aux_section_definition *ObjSD =
>>>>>>>>...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...lly I'm not leading you astray :)
>>>
>>> But I checked the code for coff2yaml, and I see this:
>>>
>>> } else if (Symbol.isSectionDefinition()) {
>>> // This symbol represents a section definition.
>>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>>> "Expected a single aux symbol to describe this section!");
>>> const object::coff_aux_section_definition *ObjSD =
>>> reinterpret_cast<const object::coff_aux_section_definition
>>> *>(
>&...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...n't really dabbled in this part of the COFF format personally, so
hopefully I'm not leading you astray :)
But I checked the code for coff2yaml, and I see this:
} else if (Symbol.isSectionDefinition()) {
// This symbol represents a section definition.
assert(Symbol.getNumberOfAuxSymbols() == 1 &&
"Expected a single aux symbol to describe this section!");
const object::coff_aux_section_definition *ObjSD =
reinterpret_cast<const object::coff_aux_section_definition *>(
AuxData.data());
So it looks like you ne...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...rt of the COFF format personally, so
> hopefully I'm not leading you astray :)
>
> But I checked the code for coff2yaml, and I see this:
>
> } else if (Symbol.isSectionDefinition()) {
> // This symbol represents a section definition.
> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
> "Expected a single aux symbol to describe this section!");
> const object::coff_aux_section_definition *ObjSD =
> reinterpret_cast<const object::coff_aux_section_definition *>(
> AuxData.data());
>...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ally, so
>> hopefully I'm not leading you astray :)
>>
>> But I checked the code for coff2yaml, and I see this:
>>
>> } else if (Symbol.isSectionDefinition()) {
>> // This symbol represents a section definition.
>> assert(Symbol.getNumberOfAuxSymbols() == 1 &&
>> "Expected a single aux symbol to describe this section!");
>> const object::coff_aux_section_definition *ObjSD =
>> reinterpret_cast<const object::coff_aux_section_definition *>(
>> AuxDa...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...#39;s a structure called coff::symbol which basically represents each
> one of these records. It looks like this:
>
> ```
> struct symbol {
> char Name[NameSize];
> uint32_t Value;
> int32_t SectionNumber;
> uint16_t Type;
> uint8_t StorageClass;
> uint8_t NumberOfAuxSymbols;
> };
> ```
>
> So you'll need to create one for the debug$H section and stick it into the
> list. This particular list doesn't have to be in any special order, so you
> can just put it at the end (although it's probably not that much harder to
> insert into the mi...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...0
Number: 0
...
```
There's a structure called coff::symbol which basically represents each one
of these records. It looks like this:
```
struct symbol {
char Name[NameSize];
uint32_t Value;
int32_t SectionNumber;
uint16_t Type;
uint8_t StorageClass;
uint8_t NumberOfAuxSymbols;
};
```
So you'll need to create one for the debug$H section and stick it into the
list. This particular list doesn't have to be in any special order, so you
can just put it at the end (although it's probably not that much harder to
insert into the middle, and it will make for a good...
2018 Jan 25
3
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
Any idea on how to create this new symbol there? I saw that there is a
symbol pointing to each section, but didn't understand the format, and
yaml2obj doesn't check it or do anything with the list.
On Thu, Jan 25, 2018 at 6:56 PM, Leonardo Santagada <santagada at gmail.com>
wrote:
> YES, THANK YOU... I WAS THINKING THIS BUT COMPLETELY FORGOT.
>
> sorry for the caps... long