Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

andcarminati (Andreu Carminati)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 22 2022, 10:53 AM (82 w, 3 d)

Recent Activity

Jun 19 2023

andcarminati abandoned D152816: [ELF] Reassign boundaries in Program Headers after offset calculation.

Under further investigation.

Jun 19 2023, 12:27 AM · Restricted Project

Jun 15 2023

andcarminati added a comment to rGdaba24ee7bd3: [ELF] << >>: make RHS less than 64.

Hi @MaskRay, thank you for handling this with such a clever solution.

Jun 15 2023, 2:20 PM · Restricted Project
andcarminati added a comment to D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

Looks like this or D151802 broke the ubsan ARM bot: https://lab.llvm.org/buildbot/#/builders/238/builds/3938. Could you please revert or fix?

Thanks!

It would be this one. I suspect that it is the test rather than the code change:

REGION1__PADDED_SR_SIZE = MAX(1 << REGION1__PADDED_SR_SHIFT, 32);

Where REGION1_PADDED_SR_SIZE isn't known till the second pass.

I think in the short term the test could be modified to clamp REGION1__PADDED_SR_SHIFT to an in range value. More thought would need to be given to whether LLD can protect itself against out of range shifts coming from scripts. I expect this could get fixed within a day assuming the author or MaskRay is around, it is the end of the day here and I need to leave in 5 minutes so I'm not in a good place to take action myself.

Jun 15 2023, 2:16 PM · Restricted Project, Restricted Project

Jun 14 2023

andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

run git-clang-format

Jun 14 2023, 12:31 AM · Restricted Project, Restricted Project
andcarminati added a comment to D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

Since you do not use arc diff 'HEAD^' to update the differential, arc patch D151802 doesn't give author name/email information. You need to provide a git commit --amend --author='...' command for me to give credits to you!

Jun 14 2023, 12:11 AM · Restricted Project, Restricted Project

Jun 13 2023

andcarminati added a reviewer for D152816: [ELF] Reassign boundaries in Program Headers after offset calculation: peter.smith.
Jun 13 2023, 7:24 AM · Restricted Project
andcarminati added a comment to D152816: [ELF] Reassign boundaries in Program Headers after offset calculation.

Some background related to this proposal:

Jun 13 2023, 7:24 AM · Restricted Project
andcarminati requested review of D152816: [ELF] Reassign boundaries in Program Headers after offset calculation.
Jun 13 2023, 7:22 AM · Restricted Project
andcarminati added a comment to D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

If there are no more comments, can you kindly commit this change, when you have time @MaskRay ?

Jun 13 2023, 2:00 AM · Restricted Project, Restricted Project
andcarminati added a comment to D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

If there are no more comments, can you kindly commit this change, when you have time @MaskRay ?

Jun 13 2023, 1:59 AM · Restricted Project, Restricted Project
andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

All MaskRay's comments were addressed.

Jun 13 2023, 1:53 AM · Restricted Project, Restricted Project

Jun 12 2023

andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

All MaskRay's comments were addressed.

Jun 12 2023, 1:34 AM · Restricted Project, Restricted Project

Jun 9 2023

andcarminati updated the diff for D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

MaskRay' s comment about the test was addressed.

Jun 9 2023, 7:31 AM · Restricted Project, Restricted Project

Jun 8 2023

andcarminati added a comment to D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

Thanks for the updates. I've made a small suggestion to simplify the code.

Jun 8 2023, 12:08 AM · Restricted Project, Restricted Project
andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

All comments were addressed.

Jun 8 2023, 12:06 AM · Restricted Project, Restricted Project

Jun 7 2023

andcarminati added a comment to D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

Thanks for the update. The code changes look reasonable to me. I'd ideally like to give a suggestion on how to simplify the test but I'm a bit short on time at the moment. Will try to come back soon. With luck one of the other reviewers will have a suggestion.

Jun 7 2023, 12:08 AM · Restricted Project, Restricted Project
andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

*The code was improved.
*The test was simplified.

Jun 7 2023, 12:03 AM · Restricted Project, Restricted Project

Jun 6 2023

andcarminati updated the diff for D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

All comments from MaskRay were addressed.

Jun 6 2023, 8:52 AM · Restricted Project, Restricted Project
andcarminati retitled D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section from [ELF] Fix linker warning condition for empty sections to [ELF] Refine warning condition for memory region assignment for non-allocatable section.
Jun 6 2023, 8:51 AM · Restricted Project, Restricted Project
andcarminati added inline comments to D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.
Jun 6 2023, 4:59 AM · Restricted Project, Restricted Project
andcarminati added a comment to D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

May I suggest an alternative approach? Instead of checking the memory regions when assigning addresses, move the check to its own function, something like verifyMemoryRegions() this could be called once after finalizeAddressDependent Content. It would require fewer changes to the code and would be working on final addresses.

One possible disadvantage of this approach, but I think that they are likely shared with suppressing the errors on the first pass, is that the contents of a memory region could spill into the next one. This could lead to overlapping addresses which may cause a different, more difficult to understand, error message. I don't think that this will be the case today, but is a possibility.

Jun 6 2023, 4:54 AM · Restricted Project, Restricted Project
andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.

Comments were addressed.

Jun 6 2023, 4:53 AM · Restricted Project, Restricted Project

Jun 5 2023

andcarminati updated the diff for D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.
Jun 5 2023, 8:18 AM · Restricted Project, Restricted Project
andcarminati requested review of D152170: [ELF] Fix early overflow check in finalizeAddressDependentContent.
Jun 5 2023, 8:15 AM · Restricted Project, Restricted Project
andcarminati added a comment to D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

Thanks for the update this looks good to me. If in a later change we can make the ByteCommands set the SHF_ALLOC flag on the OutputSection we can update the test.

Please leave a few days for MaskRay (Code Owner) to comment to see if he has any suggestions.

Jun 5 2023, 3:02 AM · Restricted Project, Restricted Project

Jun 2 2023

andcarminati updated the diff for D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

All current suggestions addressed:

Jun 2 2023, 5:37 AM · Restricted Project, Restricted Project

Jun 1 2023

andcarminati added a comment to D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.
Jun 1 2023, 6:24 AM · Restricted Project, Restricted Project
andcarminati added a comment to D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.

Just so I understand I think the main use case for this is where there is a linker script with OutputSections assigned to memory regions that may or may not contain input sections, it will depend on the input sections. As they won't get input sections they won't get the SHF_ALLOC flag and will get a spurious warning?

I agree that we shoudn't warn in that case, although I think the proposed change might suppress too many warnings at the moment.

I note that GNU ld permits the assignment of non SHF_ALLOC sections to MEM regions, assigning them an address if SHF_ALLOC, (although it ignores the empty ones). Although that is a separate issue.

Jun 1 2023, 1:34 AM · Restricted Project, Restricted Project

May 31 2023

andcarminati requested review of D151805: [MBP] Insert target hook to allow targets to decide about MBB movements.
May 31 2023, 7:27 AM · Restricted Project, Restricted Project
andcarminati requested review of D151802: [ELF] Refine warning condition for memory region assignment for non-allocatable section.
May 31 2023, 6:30 AM · Restricted Project, Restricted Project
andcarminati updated the diff for D140302: [GlobalISel] [AArch64] Fold G_PTRTOINT(G_CONSTANT).

The patch was updated to the main branch.

May 31 2023, 2:33 AM · Restricted Project, Restricted Project

Dec 19 2022

andcarminati updated the summary of D140302: [GlobalISel] [AArch64] Fold G_PTRTOINT(G_CONSTANT).
Dec 19 2022, 7:00 AM · Restricted Project, Restricted Project
andcarminati added a comment to D140302: [GlobalISel] [AArch64] Fold G_PTRTOINT(G_CONSTANT).

Where are these coming from? I thought we directly emitted pointer constants now?

Dec 19 2022, 6:58 AM · Restricted Project, Restricted Project
andcarminati updated the summary of D140302: [GlobalISel] [AArch64] Fold G_PTRTOINT(G_CONSTANT).
Dec 19 2022, 6:53 AM · Restricted Project, Restricted Project
andcarminati updated the summary of D140302: [GlobalISel] [AArch64] Fold G_PTRTOINT(G_CONSTANT).
Dec 19 2022, 6:52 AM · Restricted Project, Restricted Project
andcarminati requested review of D140302: [GlobalISel] [AArch64] Fold G_PTRTOINT(G_CONSTANT).
Dec 19 2022, 6:22 AM · Restricted Project, Restricted Project

Feb 25 2022

andcarminati added inline comments to D120578: [lldb] Implement ObjectFile::GetCStrFromSection.
Feb 25 2022, 2:59 PM · Restricted Project
andcarminati added inline comments to D120320: [lldb/driver] Fix SIGTSTP handling.
Feb 25 2022, 5:01 AM · Restricted Project, Restricted Project

Feb 24 2022

andcarminati added inline comments to D120320: [lldb/driver] Fix SIGTSTP handling.
Feb 24 2022, 5:12 PM · Restricted Project, Restricted Project