Page MenuHomePhabricator

BertalanD (Daniel Bertalan)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 5 2022, 6:48 AM (50 w, 6 d)

Recent Activity

Nov 10 2022

BertalanD committed rG948fc66f5e86: [lld-macho] Set 4-byte alignment for `__init_offsets` (authored by BertalanD).
[lld-macho] Set 4-byte alignment for `__init_offsets`
Nov 10 2022, 2:33 PM · Restricted Project
BertalanD closed D137803: [lld-macho] Set 4-byte alignment for `__init_offsets`.
Nov 10 2022, 2:33 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D137803: [lld-macho] Set 4-byte alignment for `__init_offsets`.
Nov 10 2022, 1:50 PM · Restricted Project, Restricted Project, Restricted Project

Nov 7 2022

BertalanD committed rG79f9f1f8e335: [lld-macho] Ensure that chained fixups data comes first in __LINKEDIT (authored by BertalanD).
[lld-macho] Ensure that chained fixups data comes first in __LINKEDIT
Nov 7 2022, 2:53 PM · Restricted Project
BertalanD closed D137492: [lld-macho] Ensure that chained fixups data comes first in __LINKEDIT.
Nov 7 2022, 2:53 PM · Restricted Project, Restricted Project, Restricted Project

Nov 5 2022

BertalanD requested review of D137492: [lld-macho] Ensure that chained fixups data comes first in __LINKEDIT.
Nov 5 2022, 8:41 AM · Restricted Project, Restricted Project, Restricted Project

Oct 12 2022

BertalanD added a comment to D134529: [C++20][Clang] P2468R2 The Equality Operator You Are Looking For.

Thank you all for the help and clarification! I'll go fix our code then.

Oct 12 2022, 9:55 AM · Restricted Project, Restricted Project
BertalanD added a comment to D126907: Deferred Concept Instantiation Implementation Take 2.

(I know this is a very contrived example with void operator!=, but that is what CVise spat out, and the actual failures are related to comparison operators too)

Oct 12 2022, 8:56 AM · Restricted Project, Restricted Project
BertalanD added a comment to D126907: Deferred Concept Instantiation Implementation Take 2.

I tried out D135772, and our build got significantly farther than before! I unfortunately discovered another piece of code that pre babdef27c503c0bbbcc017e9f88affddda90ea4e Clang and GCC accept in C++20 mode, but Clang trunk does not (https://godbolt.org/z/q1q4nfobK):

Oct 12 2022, 8:40 AM · Restricted Project, Restricted Project

Oct 11 2022

BertalanD added a comment to D126907: Deferred Concept Instantiation Implementation Take 2.

Hi @erichkeane,

This change broke compilation of this program (https://godbolt.org/z/KrWGvcf8h; reduced from https://github.com/SerenityOS/ladybird):

template<typename T, typename U>
constexpr bool IsSame = false;

template<typename T>
constexpr bool IsSame<T, T> = true;

template<typename T>
struct Foo {
    template<typename U>
    Foo(U&&) requires (!IsSame<U, Foo>);
};

template<>
struct Foo<void> : Foo<int> {
    using Foo<int>::Foo;
};

Foo<void> test() { return 0; }
<source>:18:27: error: invalid reference to function 'Foo': constraints not satisfied
Foo<void> test() { return 0; }
                          ^
<source>:10:24: note: because substituted constraint expression is ill-formed: value of type '<dependent type>' is not contextually convertible to 'bool'
    Foo(U&&) requires (!IsSame<U, Foo>);
                       ^

Thanks for the report! I'll look into it ASAP.

Quick note: I believe I understand the cause of this, which requires a bit more work than I otherwise would have expected. I have a candidate patch I'm running through my testing right now that should fix this, but it still needs cleaning up. Expect it in the next day or two if all goes well.

Oct 11 2022, 2:30 PM · Restricted Project, Restricted Project

Oct 8 2022

BertalanD added a comment to D126907: Deferred Concept Instantiation Implementation Take 2.

This change broke compilation of this program (https://godbolt.org/z/KrWGvcf8h; reduced from https://github.com/SerenityOS/ladybird):

Oct 8 2022, 2:29 AM · Restricted Project, Restricted Project

Oct 4 2022

BertalanD added a comment to D132560: [lld-macho] Add initial support for chained fixups.

I'll be mostly AFK for a couple of hours, so feel free to revert immediately if this commit starts breaking bots.

Oct 4 2022, 3:38 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD committed rG0d30e92f5958: [lld-macho] Add support for emitting chained fixups (authored by BertalanD).
[lld-macho] Add support for emitting chained fixups
Oct 4 2022, 2:51 AM · Restricted Project, Restricted Project
BertalanD closed D132560: [lld-macho] Add initial support for chained fixups.
Oct 4 2022, 2:51 AM · Restricted Project, Restricted Project, Restricted Project

Oct 3 2022

BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Oct 3 2022, 1:44 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D132560: [lld-macho] Add initial support for chained fixups.

Added driver tests, tweaked help messages.

Oct 3 2022, 1:43 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Oct 3 2022, 1:07 PM · Restricted Project, Restricted Project, Restricted Project

Oct 1 2022

BertalanD updated the diff for D132560: [lld-macho] Add initial support for chained fixups.

Cleaned up writeStub() implementations by taking the GOT/lazy pointer address as a parameter. Addressed review comments from Jez.

Oct 1 2022, 2:50 PM · Restricted Project, Restricted Project, Restricted Project

Sep 28 2022

BertalanD committed rGf546165754d4: [lld-macho] Don't create entries in isecPriorities during sorting (NFC) (authored by BertalanD).
[lld-macho] Don't create entries in isecPriorities during sorting (NFC)
Sep 28 2022, 7:56 AM · Restricted Project
BertalanD closed D134811: [lld-macho] Don't create entries in isecPriorities during sorting (NFC).
Sep 28 2022, 7:55 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D134811: [lld-macho] Don't create entries in isecPriorities during sorting (NFC).
Sep 28 2022, 7:37 AM · Restricted Project, Restricted Project, Restricted Project

Sep 24 2022

BertalanD committed rGd2f3d7bad26a: [lld-macho] Force higher alignment for __thread_vars (authored by BertalanD).
[lld-macho] Force higher alignment for __thread_vars
Sep 24 2022, 11:22 PM · Restricted Project
BertalanD closed D134594: [lld-macho] Force higher alignment for __thread_vars.
Sep 24 2022, 11:22 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added a comment to D134594: [lld-macho] Force higher alignment for __thread_vars.

thank you!

Sep 24 2022, 2:16 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D134594: [lld-macho] Force higher alignment for __thread_vars.
Sep 24 2022, 12:49 PM · Restricted Project, Restricted Project, Restricted Project

Sep 17 2022

BertalanD updated the diff for D132560: [lld-macho] Add initial support for chained fixups.

rebased and started addressing review comments

Sep 17 2022, 9:47 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Sep 17 2022, 8:36 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD closed D134053: [lld-macho] Simplify base address calculation for init offsets (NFC).

Submitted in 3493f1a10791.

Sep 17 2022, 1:26 AM · Restricted Project, Restricted Project
BertalanD committed rG3493f1a10791: [lld-macho] Simplify base address calculation for init offsets (NFC) (authored by BertalanD).
[lld-macho] Simplify base address calculation for init offsets (NFC)
Sep 17 2022, 1:24 AM · Restricted Project

Sep 16 2022

BertalanD added inline comments to D134058: [lld-macho] Support -dyld_env.
Sep 16 2022, 12:50 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D134053: [lld-macho] Simplify base address calculation for init offsets (NFC).
Sep 16 2022, 9:57 AM · Restricted Project, Restricted Project
BertalanD committed rGa8843ec95295: [lld-macho] Parallelize linker optimization hint processing (authored by BertalanD).
[lld-macho] Parallelize linker optimization hint processing
Sep 16 2022, 8:39 AM · Restricted Project
BertalanD closed D133439: [lld-macho] Parallelize linker optimization hint processing.
Sep 16 2022, 8:39 AM · Restricted Project, Restricted Project, Restricted Project

Sep 13 2022

BertalanD committed rG025a5b22c848: [lld-macho] Sort data-in-code entries (authored by BertalanD).
[lld-macho] Sort data-in-code entries
Sep 13 2022, 10:11 AM · Restricted Project
BertalanD closed D133581: [lld-macho] Sort data-in-code entries.
Sep 13 2022, 10:10 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD added a comment to D133581: [lld-macho] Sort data-in-code entries.

Thank you for the write-up, it was very interesting!

Sep 13 2022, 9:39 AM · Restricted Project, Restricted Project, Restricted Project

Sep 12 2022

BertalanD added inline comments to D133439: [lld-macho] Parallelize linker optimization hint processing.
Sep 12 2022, 9:30 AM · Restricted Project, Restricted Project, Restricted Project

Sep 10 2022

BertalanD updated the diff for D133581: [lld-macho] Sort data-in-code entries.

Sort DataInCodeSection's contents as suggested by thakis.

Sep 10 2022, 7:24 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD added a comment to D133581: [lld-macho] Sort data-in-code entries.

It kind of makes sense to require the data in code table in the output to be sorted too, so that tools can binary sort in _it_.

Sep 10 2022, 6:42 AM · Restricted Project, Restricted Project, Restricted Project

Sep 9 2022

BertalanD requested review of D133581: [lld-macho] Sort data-in-code entries.
Sep 9 2022, 8:30 AM · Restricted Project, Restricted Project, Restricted Project

Sep 8 2022

BertalanD added inline comments to D133439: [lld-macho] Parallelize linker optimization hint processing.
Sep 8 2022, 8:58 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D133439: [lld-macho] Parallelize linker optimization hint processing.

Changed the readValuelambda into a standalone function and removed a stray #undef.

Sep 8 2022, 8:57 AM · Restricted Project, Restricted Project, Restricted Project
Herald added a reviewer for D115556: [lld-macho][nfc] Simplify LC_DATA_IN_CODE generation: ributzka.
Sep 8 2022, 8:10 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D133439: [lld-macho] Parallelize linker optimization hint processing.

Removed ObjFile::optimizationHints.

Sep 8 2022, 7:28 AM · Restricted Project, Restricted Project, Restricted Project

Sep 7 2022

BertalanD added inline comments to D133439: [lld-macho] Parallelize linker optimization hint processing.
Sep 7 2022, 2:55 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D133439: [lld-macho] Parallelize linker optimization hint processing.

Addressed review comments, tweaked the comment on applyOptimizationHints and updated the description to include that the previous overhead was close to 100 milliseconds.

Sep 7 2022, 2:52 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D133439: [lld-macho] Parallelize linker optimization hint processing.
Sep 7 2022, 10:56 AM · Restricted Project, Restricted Project, Restricted Project

Sep 5 2022

BertalanD committed rGa8ec90ad9cfd: [lld-macho] Simplify linker optimization hint processing (authored by BertalanD).
[lld-macho] Simplify linker optimization hint processing
Sep 5 2022, 11:27 PM · Restricted Project
BertalanD closed D133274: [lld-macho] Simplify linker optimization hint processing.
Sep 5 2022, 11:27 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D133274: [lld-macho] Simplify linker optimization hint processing.

Rebased in order to re-run precommit checks before I push.

Sep 5 2022, 8:30 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD committed rG1b65d20961d3: [lld-macho] Diagnose unaligned arm64 PAGEOFF12 relocations (authored by BertalanD).
[lld-macho] Diagnose unaligned arm64 PAGEOFF12 relocations
Sep 5 2022, 8:00 AM · Restricted Project
BertalanD closed D133269: [lld-macho] Diagnose unaligned arm64 PAGEOFF12 relocations.
Sep 5 2022, 8:00 AM · Restricted Project, Restricted Project, Restricted Project

Sep 4 2022

BertalanD committed rG4f688d00f430: [lld-macho] Change constant std::vector to std::array (NFC) (authored by BertalanD).
[lld-macho] Change constant std::vector to std::array (NFC)
Sep 4 2022, 1:58 PM · Restricted Project
BertalanD added a comment to D132560: [lld-macho] Add initial support for chained fixups.

Thank you for the review!

Sep 4 2022, 11:33 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D133274: [lld-macho] Simplify linker optimization hint processing.
Sep 4 2022, 8:06 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD committed rG1ba8be315d92: [lld-macho][test] Correct a mismatched adrp-add pair (authored by BertalanD).
[lld-macho][test] Correct a mismatched adrp-add pair
Sep 4 2022, 1:17 AM · Restricted Project
BertalanD requested review of D133269: [lld-macho] Diagnose unaligned arm64 PAGEOFF12 relocations.
Sep 4 2022, 12:25 AM · Restricted Project, Restricted Project, Restricted Project

Aug 31 2022

BertalanD committed rGf7b752d27766: [lld-macho] Set the SG_READ_ONLY flag on __DATA_CONST (authored by BertalanD).
[lld-macho] Set the SG_READ_ONLY flag on __DATA_CONST
Aug 31 2022, 8:23 AM · Restricted Project, Restricted Project
BertalanD closed D133010: [lld-macho] Set the SG_READ_ONLY flag on __DATA_CONST.
Aug 31 2022, 8:22 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD accepted D133014: [lld-macho][nfc] Simplify MarkLive.cpp using `if constexpr`.
Aug 31 2022, 6:33 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D133010: [lld-macho] Set the SG_READ_ONLY flag on __DATA_CONST.

Improved comments.

Aug 31 2022, 6:32 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D133010: [lld-macho] Set the SG_READ_ONLY flag on __DATA_CONST.
Aug 31 2022, 3:53 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD committed rG389e0a81a15c: [lld-macho] Support synthesizing __TEXT,__init_offsets (authored by BertalanD).
[lld-macho] Support synthesizing __TEXT,__init_offsets
Aug 31 2022, 1:22 AM · Restricted Project, Restricted Project
BertalanD closed D132947: [lld-macho] Support synthesizing __TEXT,__init_offsets.
Aug 31 2022, 1:22 AM · Restricted Project, Restricted Project, Restricted Project

Aug 30 2022

BertalanD updated the diff for D132560: [lld-macho] Add initial support for chained fixups.

Rebase on top of D132865 and D132947.

Aug 30 2022, 10:12 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD added a comment to D132947: [lld-macho] Support synthesizing __TEXT,__init_offsets.

Addressed review comments.

Aug 30 2022, 9:51 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D132947: [lld-macho] Support synthesizing __TEXT,__init_offsets.
Aug 30 2022, 9:47 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD committed rGae5d5426fb7e: [lld-macho] Rename {StubHelper,ObjCStubs}Section::setup() to setUp (NFC) (authored by BertalanD).
[lld-macho] Rename {StubHelper,ObjCStubs}Section::setup() to setUp (NFC)
Aug 30 2022, 9:31 AM · Restricted Project
BertalanD added inline comments to D132947: [lld-macho] Support synthesizing __TEXT,__init_offsets.
Aug 30 2022, 8:46 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132947: [lld-macho] Support synthesizing __TEXT,__init_offsets.
Aug 30 2022, 8:42 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD requested review of D132947: [lld-macho] Support synthesizing __TEXT,__init_offsets.
Aug 30 2022, 8:05 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD accepted D132865: [llvm-otool] Print dyld_info output before chained_fixup output.
Aug 30 2022, 3:15 AM · Restricted Project, Restricted Project

Aug 29 2022

BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Aug 29 2022, 11:47 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Aug 29 2022, 10:02 AM · Restricted Project, Restricted Project, Restricted Project

Aug 28 2022

BertalanD committed rG47e4663c4eac: [llvm-objdump] Add -dyld_info to llvm-otool (authored by BertalanD).
[llvm-objdump] Add -dyld_info to llvm-otool
Aug 28 2022, 12:36 AM · Restricted Project, Restricted Project
BertalanD closed D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 28 2022, 12:35 AM · Restricted Project, Restricted Project

Aug 27 2022

BertalanD added inline comments to D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 27 2022, 2:47 PM · Restricted Project, Restricted Project
BertalanD updated the diff for D132036: [llvm-objdump] Add -dyld_info to llvm-otool.

Fix CI by properly ignoring error during the first iteration in PrintDyldInfo().

Aug 27 2022, 6:10 AM · Restricted Project, Restricted Project
BertalanD updated the diff for D132036: [llvm-objdump] Add -dyld_info to llvm-otool.

pretty-print the table with proper column alignment

Aug 27 2022, 1:08 AM · Restricted Project, Restricted Project

Aug 26 2022

BertalanD updated subscribers of D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 26 2022, 2:29 PM · Restricted Project, Restricted Project
BertalanD updated the diff for D132560: [lld-macho] Add initial support for chained fixups.

Attempt to fix the Windows build.

Aug 26 2022, 2:11 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 26 2022, 2:02 PM · Restricted Project, Restricted Project
BertalanD updated the diff for D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 26 2022, 2:00 PM · Restricted Project, Restricted Project
BertalanD updated the diff for D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
  • Moved code for finding the next fixup into a helper function (findNextPageWithFixups).
  • Folded printMachOChainedFixups into PrintDyldInfo.
  • Added test to ensure that we can handle objects that don't use chained fixups.
  • Minor comment tweaks.
Aug 26 2022, 1:54 PM · Restricted Project, Restricted Project
BertalanD updated the diff for D132560: [lld-macho] Add initial support for chained fixups.

Added diagnostics for too old deployment targets, rebase target address overflows, and tweaked comments.

Aug 26 2022, 7:06 AM · Restricted Project, Restricted Project, Restricted Project

Aug 25 2022

BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Aug 25 2022, 3:17 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132560: [lld-macho] Add initial support for chained fixups.
Aug 25 2022, 2:03 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 25 2022, 10:22 AM · Restricted Project, Restricted Project
BertalanD added a comment to D132036: [llvm-objdump] Add -dyld_info to llvm-otool.

I cleaned the patch up a bit and rebased it. D132560 depends on this for tests.

Aug 25 2022, 10:19 AM · Restricted Project, Restricted Project
BertalanD updated the diff for D132036: [llvm-objdump] Add -dyld_info to llvm-otool.
Aug 25 2022, 10:17 AM · Restricted Project, Restricted Project
BertalanD committed rG6b6d1abb1021: [lld-macho] Move adding bindings for stub targets out of Writer (NFC) (authored by BertalanD).
[lld-macho] Move adding bindings for stub targets out of Writer (NFC)
Aug 25 2022, 8:38 AM · Restricted Project
BertalanD closed D132476: [lld-macho] Move adding bindings for stub targets out of Writer (NFC).
Aug 25 2022, 8:37 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D132476: [lld-macho] Move adding bindings for stub targets out of Writer (NFC).

Updated StubsSection::addEntry() comment.

Aug 25 2022, 2:29 AM · Restricted Project, Restricted Project, Restricted Project

Aug 24 2022

BertalanD committed rG1b2d84a55311: [lld-macho][test] Check addresses in flat-namespace-interposable.s (authored by BertalanD).
[lld-macho][test] Check addresses in flat-namespace-interposable.s
Aug 24 2022, 2:51 PM · Restricted Project
BertalanD closed D132367: [lld-macho][test] Check addresses in flat-namespace-interposable.s.
Aug 24 2022, 2:51 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD updated the diff for D132476: [lld-macho] Move adding bindings for stub targets out of Writer (NFC).

Call in.stubs->addEntry() directly, and use needsBinding() to check if a stub is needed.

Aug 24 2022, 12:03 PM · Restricted Project, Restricted Project, Restricted Project
BertalanD added inline comments to D132476: [lld-macho] Move adding bindings for stub targets out of Writer (NFC).
Aug 24 2022, 11:11 AM · Restricted Project, Restricted Project, Restricted Project
BertalanD committed rG686d8ce1ab16: [llvm-objdump] Complete -chained_fixups support (authored by BertalanD).
[llvm-objdump] Complete -chained_fixups support
Aug 24 2022, 10:29 AM · Restricted Project, Restricted Project
BertalanD closed D131982: [llvm-objdump] Complete -chained_fixups support.
Aug 24 2022, 10:29 AM · Restricted Project, Restricted Project
BertalanD requested review of D132560: [lld-macho] Add initial support for chained fixups.
Aug 24 2022, 7:26 AM · Restricted Project, Restricted Project, Restricted Project