Displaying 20 results from an estimated 54 matches for "globallyhashedtyp".
Did you mean:
globallyhashedtype
2018 Jan 28
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
Look for this code in lld/coff/pdb.cpp
if (Config->DebugGHashes) {
ArrayRef<GloballyHashedType> Hashes;
std::vector<GloballyHashedType> OwnedHashes;
if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
Hashes = getHashesFromDebugH(*DebugH);
else {
OwnedHashes = GloballyHashedType::hashTypes(Types);
Hashes = OwnedHashes;
}
In the else block there, add a log message...
2018 Jan 28
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...GO to see how much
faster can it get? I might try that as well, as 10% speed improvement might
be handy.
On Sun, Jan 28, 2018 at 11:14 PM, Zachary Turner <zturner at google.com> wrote:
> Look for this code in lld/coff/pdb.cpp
>
>
> if (Config->DebugGHashes) {
> ArrayRef<GloballyHashedType> Hashes;
> std::vector<GloballyHashedType> OwnedHashes;
> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
> Hashes = getHashesFromDebugH(*DebugH);
> else {
> OwnedHashes = GloballyHashedType::hashTypes(Types);
> Hashes = OwnedHashes;
> }
>
>...
2018 Jan 28
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ht try that as well, as 10% speed improvement might
> be handy.
>
> On Sun, Jan 28, 2018 at 11:14 PM, Zachary Turner <zturner at google.com>
> wrote:
>
>> Look for this code in lld/coff/pdb.cpp
>>
>>
>> if (Config->DebugGHashes) {
>> ArrayRef<GloballyHashedType> Hashes;
>> std::vector<GloballyHashedType> OwnedHashes;
>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>> Hashes = getHashesFromDebugH(*DebugH);
>> else {
>> OwnedHashes = GloballyHashedType::hashTypes(Types);
>> Hashes = Owne...
2018 Jan 29
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...gt;>
>>> On Sun, Jan 28, 2018 at 11:14 PM, Zachary Turner <zturner at google.com>
>>> wrote:
>>>
>>>> Look for this code in lld/coff/pdb.cpp
>>>>
>>>>
>>>> if (Config->DebugGHashes) {
>>>> ArrayRef<GloballyHashedType> Hashes;
>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>> Hashes = getHashesFromDebugH(*DebugH);
>>>> else {
>>>> OwnedHashes = GloballyHashedType::...
2018 Jan 29
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ement
>> might be handy.
>>
>> On Sun, Jan 28, 2018 at 11:14 PM, Zachary Turner <zturner at google.com>
>> wrote:
>>
>>> Look for this code in lld/coff/pdb.cpp
>>>
>>>
>>> if (Config->DebugGHashes) {
>>> ArrayRef<GloballyHashedType> Hashes;
>>> std::vector<GloballyHashedType> OwnedHashes;
>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>> Hashes = getHashesFromDebugH(*DebugH);
>>> else {
>>> OwnedHashes = GloballyHashedType::hashTypes(Types);
&g...
2018 Jan 29
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...Jan 28, 2018 at 11:14 PM, Zachary Turner <zturner at google.com>
>>>> wrote:
>>>>
>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>
>>>>>
>>>>> if (Config->DebugGHashes) {
>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>> Hashes = getHashesFromDebugH(*DebugH);
>>>>> else {
>>>>> OwnedHashes =...
2018 Jan 29
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...achary Turner <zturner at google.com>
>>>>> wrote:
>>>>>
>>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>
>>>>>>
>>>>>> if (Config->DebugGHashes) {
>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>> Hashes = getHashesFromDebugH(*DebugH);
>>>>>> else {
>>>>>...
2018 Jan 29
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...google.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>>
>>>>>>>
>>>>>>> if (Config->DebugGHashes) {
>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>> Hashes = getHashesFromDebugH(*DebugH);
>>>>>>> else {
>...
2018 Jan 29
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...gt;>> > wrote:
>>>>>>>
>>>>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>>>
>>>>>>>>
>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>> Hashes = getHashesFromDebugH(*DebugH);
>>>>>>>...
2018 Jan 30
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>>>>>>
>>>>>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>> Hashes = getHashesFromDebugH(*DebugH);
>>>>...
2018 Jan 28
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
Ok I went for kind of middle ground solution, I patch in the obj files, but
as adding a new section didn't seem to work, I add a "shadow" section, by
editing the pointer to line number and the virtual size on the .debug$T
section. Although technically broken, both link.exe and lld-link.exe don't
seem to mind the alterations and as the shadow .debug$H is not really a
section
2018 Jan 30
4
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>
>>>>>>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>>> Hashes = getHashesFromDebugH(*DebugH);
>...
2018 Jan 30
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>>>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>>>> Hashes = getHashesFromDebugH(*...
2018 Jan 30
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;> Look for this code in lld/coff/pdb.cpp
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>>>>>> Hashes...
2018 Jan 30
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>>> Look for this code in lld/coff/pdb.cpp
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>>>>> Hashes = getHashes...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
We don't generate any .lib as those don't work well with incremental
linking (and give zero advantages when linking AFAIK), and it would be
pretty easy to have a modern format for having a .ghash for multiple files,
something simple like size prefixed name and then size prefixed ghash blobs.
On Fri, Jan 26, 2018 at 8:44 PM, Zachary Turner <zturner at google.com> wrote:
> We
2018 Jan 31
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...his code in lld/coff/pdb.cpp
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>>>>>>...
2018 Jan 31
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...coff/pdb.cpp
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> if (Config->DebugGHashes) {
>>>>>>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
>>>>>>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
>>>>>>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
>>>>>>>>>>>...
2018 Jan 31
1
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> if (Config->DebugGHashes) {
> >>>>>>>>>>>>>>> ArrayRef<GloballyHashedType> Hashes;
> >>>>>>>>>>>>>>> std::vector<GloballyHashedType> OwnedHashes;
> >>>>>>>>>>>>>>> if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File))
> >>>>>>>...
2018 Jan 19
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...Sections / getSectionName) looking for .debug$T and .debug$H
sections.
If you find a .debug$H section then you can just skip that object file.
If you find a .debug$T but not a .debug$H, then basically do the same thing
that LLD does in PDBLinker::mergeDebugT (create a CVTypeArray, and pass it
to GloballyHashedType::hashTypes. That will return an array of hash
values. (the format of .debug$H is the header, followed by the hash
values). Then when you're writing the list of sections, just add in the
.debug$H section right after the .debug$T section.
Currently llvm-objcopy only writes ELF files, so it w...