Displaying 13 results from an estimated 13 matches for "writesect".
Did you mean:
writedec
2016 Feb 03
2
lld dynamic relocation creation issue
...a8 (dynamic relocation r_addend) points to a function at
.text segment (in this case frame_dummy).
I am trying to made this on lld, but current step sequence is:
- Write::run
\_ Write::createSections
\_ Write::scanRelocs
\_ Write::addReloc // Dynamic Relocation creation
\_ Write::writeSections
\_ OutputSectionBase::writeTo
\_ InputSection::writeTo
\_ InputSection::relocate
\_ TargetInfo::relocateOne
The problem is only at TargetInfo::relocate the target (aarch64) will see
that the relocation is a R_AARCH64_ABS64 one and thus will need to create...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...; So I think you just need to write the bytes immediately after the
>>>>> coff::symbol. The thing you need to write looks like a
>>>>> coff::coff_aux_section_definition structure.
>>>>>
>>>>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It looks
>>>>> like its a CRC32 of the actual section contents, which you can generate
>>>>> with a couple of lines of code:
>>>>>
>>>>> JamCRC JC(/*Init=*/0);
>>>>> JC.update(DebugHContents);
>>>>>...
2018 Jan 26
3
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...just need to write the bytes immediately after the
>>>>>> coff::symbol. The thing you need to write looks like a
>>>>>> coff::coff_aux_section_definition structure.
>>>>>>
>>>>>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It
>>>>>> looks like its a CRC32 of the actual section contents, which you can
>>>>>> generate with a couple of lines of code:
>>>>>>
>>>>>> JamCRC JC(/*Init=*/0);
>>>>>> JC.update(DebugHContents);
&g...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ite the bytes immediately after the
>>>>>>> coff::symbol. The thing you need to write looks like a
>>>>>>> coff::coff_aux_section_definition structure.
>>>>>>>
>>>>>>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It
>>>>>>> looks like its a CRC32 of the actual section contents, which you can
>>>>>>> generate with a couple of lines of code:
>>>>>>>
>>>>>>> JamCRC JC(/*Init=*/0);
>>>>>>> JC.update...
2012 Mar 06
4
Understanding metadata efficiency of btrfs
I''ve run a little wired benchmark on comparing Btrfs v0.19 and XFS:
There are 2000 directories and each directory contains 1000 files.
The workload randomly stat a file or chmod a file for 2000000 times.
And the number of stat and chmod are 50% and 50%.
I monitor the number of disk read requests
#Disk Write Requests, #Disk Read Requests, #Disk Write Sectors, #Disk Read
2018 Jan 26
4
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...mediately after the
>>>>>>>> coff::symbol. The thing you need to write looks like a
>>>>>>>> coff::coff_aux_section_definition structure.
>>>>>>>>
>>>>>>>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It
>>>>>>>> looks like its a CRC32 of the actual section contents, which you can
>>>>>>>> generate with a couple of lines of code:
>>>>>>>>
>>>>>>>> JamCRC JC(/*Init=*/0);
>>>>>>...
2016 Aug 18
3
Should lld support binary output ("--oformat binary")?
One remaining blocking issue for linking FreeBSD with lld is the
inability to build the bootloader components. We have a patch[1] in
review to address one of the problems by switching to using a linker
script instead of GNU ld's -N option. Another issue is that some
bootloader components are created by the linker directly as binary
objects, using --oformat binary. (Other bootloader components
2018 Jan 26
1
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>> So I think you just need to write the bytes immediately after the
>>>> coff::symbol. The thing you need to write looks like a
>>>> coff::coff_aux_section_definition structure.
>>>>
>>>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It looks
>>>> like its a CRC32 of the actual section contents, which you can generate
>>>> with a couple of lines of code:
>>>>
>>>> JamCRC JC(/*Init=*/0);
>>>> JC.update(DebugHContents);
>>>> AuxSymbol.CheckSum = JC...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...olSize;
>>>
>>> So I think you just need to write the bytes immediately after the
>>> coff::symbol. The thing you need to write looks like a
>>> coff::coff_aux_section_definition structure.
>>>
>>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It looks
>>> like its a CRC32 of the actual section contents, which you can generate
>>> with a couple of lines of code:
>>>
>>> JamCRC JC(/*Init=*/0);
>>> JC.update(DebugHContents);
>>> AuxSymbol.CheckSum = JC.getCRC();
>>>...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...Aux = reinterpret_cast<const uint8_t *>(Symbol.getRawPtr()) +
SymbolSize;
So I think you just need to write the bytes immediately after the
coff::symbol. The thing you need to write looks like a
coff::coff_aux_section_definition structure.
For the CheckSum, look at WinCOFFObjectWriter::writeSection. It looks like
its a CRC32 of the actual section contents, which you can generate with a
couple of lines of code:
JamCRC JC(/*Init=*/0);
JC.update(DebugHContents);
AuxSymbol.CheckSum = JC.getCRC();
Hope this helps
On Thu, Jan 25, 2018 at 10:46 AM Leonardo Santagada <santagada at gma...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...st uint8_t *>(Symbol.getRawPtr()) +
> SymbolSize;
>
> So I think you just need to write the bytes immediately after the
> coff::symbol. The thing you need to write looks like a
> coff::coff_aux_section_definition structure.
>
> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It looks
> like its a CRC32 of the actual section contents, which you can generate
> with a couple of lines of code:
>
> JamCRC JC(/*Init=*/0);
> JC.update(DebugHContents);
> AuxSymbol.CheckSum = JC.getCRC();
>
> Hope this helps
>
> On Thu, Jan 25, 2018 at 1...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...awPtr()) +
>> SymbolSize;
>>
>> So I think you just need to write the bytes immediately after the
>> coff::symbol. The thing you need to write looks like a
>> coff::coff_aux_section_definition structure.
>>
>> For the CheckSum, look at WinCOFFObjectWriter::writeSection. It looks
>> like its a CRC32 of the actual section contents, which you can generate
>> with a couple of lines of code:
>>
>> JamCRC JC(/*Init=*/0);
>> JC.update(DebugHContents);
>> AuxSymbol.CheckSum = JC.getCRC();
>>
>> Hope this helps
>...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
I see that there is an auxsymbol per section symbol, and also on the yaml
representation there is a checksum, selection and unused all of them I have
no idea how to fill in, also this aux symbol might have some important
information for me to patch on the other symbols. Can you find the part in
llvm that it writes those? because at least for auxsymbol the yaml part of
the code threats as a binary