Page MenuHomePhabricator

rahulchaudhry (Rahul Chaudhry)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 23 2018, 12:10 PM (261 w, 2 d)

Recent Activity

Jul 6 2018

rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jul 6 2018, 10:45 AM

Jul 3 2018

rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Made the conversion to Elf_Relr explicit.

Jul 3 2018, 3:00 PM
rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jul 3 2018, 2:24 PM

Jul 2 2018

rahulchaudhry added a comment to D48247: lld: add experimental support for SHT_RELR sections..

Some updates from the testing front:

Jul 2 2018, 1:07 PM
rahulchaudhry updated the summary of D48247: lld: add experimental support for SHT_RELR sections..
Jul 2 2018, 12:59 PM
rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jul 2 2018, 12:58 PM
rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Added some comments, plus some minor edits.

Jul 2 2018, 12:58 PM

Jun 29 2018

rahulchaudhry added a comment to D48247: lld: add experimental support for SHT_RELR sections..

Thanks for the patch. Things look much cleaner now.

Jun 29 2018, 4:47 PM
rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Applied patch from pcc and made --use-android-relr-tags independent of --pack-dyn-relocs.

Jun 29 2018, 4:45 PM
rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jun 29 2018, 2:59 PM
rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Reverted the enum class for --pack-dyn-relocs.
Added class RelativeReloc that is similar to DynamicReloc but only stores relative relocations.
Added class RelrBaseSection that is similar to RelocationBaseSection but stores RelativeRelocs instead of DynamicRelocs.
RelrPackedRelocationSection now inherits from RelrBaseSection.
Updated test to add a relative relocation with odd offset.

Jun 29 2018, 2:55 PM

Jun 28 2018

rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jun 28 2018, 4:48 PM
rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Added an enum class for the --pack-dyn-relocs flag.
Added another option "android+relr" that implies both "android" and "android-relr" packing.
Another place in Relocations.cpp needed change to add relative relocations in RelrDyn instead of RelaDyn.
Relocations are only added to RelrDyn if "Sec.Alignment >= 2 && Offset % 2 == 0".

Jun 28 2018, 3:52 PM
rahulchaudhry added a comment to D47919: llvm-readobj: add experimental support for SHT_RELR sections..

LGTM, sorry for the back and forth!

Jun 28 2018, 1:29 PM

Jun 27 2018

rahulchaudhry added inline comments to D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 27 2018, 5:15 PM
rahulchaudhry updated the diff for D47919: llvm-readobj: add experimental support for SHT_RELR sections..

Decoding relr relocations is the default now for both -relocations and -dyn-relocations.
A new flag -raw-relr affects -relocations, turns off decoding and display raw SHT_RELR contents instead.

Jun 27 2018, 5:09 PM
rahulchaudhry added inline comments to D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 27 2018, 2:18 PM
rahulchaudhry added inline comments to D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 27 2018, 11:34 AM

Jun 26 2018

rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jun 26 2018, 4:19 PM
rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Relr is now defined directly as packed<uint>.
Added comment describing the SHT_RELR encoding.
Moved the logic for adding a relr relocation to Relocations.cpp.
RelocationBaseSection::addReloc is no longer a virtual function.

Jun 26 2018, 4:19 PM
rahulchaudhry added inline comments to D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 26 2018, 12:39 PM
rahulchaudhry updated the diff for D47919: llvm-readobj: add experimental support for SHT_RELR sections..

Relr is now defined directly as packed<uint>.
struct Elf_Relr_Impl is no longer necessary.

Jun 26 2018, 12:14 PM

Jun 19 2018

rahulchaudhry updated subscribers of D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 19 2018, 2:16 PM
rahulchaudhry updated subscribers of D48247: lld: add experimental support for SHT_RELR sections..
Jun 19 2018, 2:15 PM
rahulchaudhry added inline comments to D48247: lld: add experimental support for SHT_RELR sections..
Jun 19 2018, 2:15 PM
rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Write addend in section data only for the relocations in .relr.dyn.

Jun 19 2018, 2:14 PM

Jun 18 2018

rahulchaudhry updated the diff for D48247: lld: add experimental support for SHT_RELR sections..

Added tests, ready for review.

Jun 18 2018, 3:04 PM

Jun 15 2018

rahulchaudhry added a comment to D48247: lld: add experimental support for SHT_RELR sections..

This patch depends on https://reviews.llvm.org/D47919

Jun 15 2018, 4:27 PM
rahulchaudhry updated subscribers of D48247: lld: add experimental support for SHT_RELR sections..
Jun 15 2018, 4:18 PM
rahulchaudhry created D48247: lld: add experimental support for SHT_RELR sections..
Jun 15 2018, 4:16 PM
rahulchaudhry added inline comments to D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 15 2018, 4:13 PM
rahulchaudhry updated the diff for D47919: llvm-readobj: add experimental support for SHT_RELR sections..

Apologies for the delay in updating this patch.

Jun 15 2018, 4:01 PM

Jun 8 2018

rahulchaudhry updated subscribers of D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 8 2018, 4:50 PM
rahulchaudhry added inline comments to D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 8 2018, 3:33 PM
rahulchaudhry updated the diff for D47919: llvm-readobj: add experimental support for SHT_RELR sections..

Added tests, ready for review.

Jun 8 2018, 3:27 PM

Jun 7 2018

rahulchaudhry added a comment to D47919: llvm-readobj: add experimental support for SHT_RELR sections..

I'm still working on adding some unit tests, but I thought I'd send this in for now in case there is any high level feedback on the overall approach.

Jun 7 2018, 4:53 PM
rahulchaudhry created D47919: llvm-readobj: add experimental support for SHT_RELR sections..
Jun 7 2018, 4:48 PM

Jun 5 2018

rahulchaudhry added a comment to D47800: llvm-readobj: fix printing number of relocations in Android packed format..

Thanks for the review.
Can you land this one as well. I am new to llvm and don't have commit access.

Jun 5 2018, 10:00 PM
rahulchaudhry added a comment to D47803: Add definition for ELF dynamic tag DT_SYMTAB_SHNDX..

Can you land it as well. I am new to llvm and don't have commit access.
Thanks.

Jun 5 2018, 9:59 PM
rahulchaudhry created D47803: Add definition for ELF dynamic tag DT_SYMTAB_SHNDX..
Jun 5 2018, 4:42 PM
rahulchaudhry updated the diff for D47800: llvm-readobj: fix printing number of relocations in Android packed format..

Renamed android_relas -> AndroidRelas

Jun 5 2018, 2:45 PM
rahulchaudhry created D47800: llvm-readobj: fix printing number of relocations in Android packed format..
Jun 5 2018, 2:27 PM

Mar 30 2018

rahulchaudhry added a comment to D44848: Align stubs for external and common global variables to pointer size..

Thanks for the review.
If everything looks good, can you land it as well.
This is my first change. I don't have write permissions to the repo.

Mar 30 2018, 9:00 AM
rahulchaudhry updated the diff for D44848: Align stubs for external and common global variables to pointer size..

Use CHECK-NEXT to match p2align.

Mar 30 2018, 8:57 AM

Mar 29 2018

rahulchaudhry added inline comments to D44848: Align stubs for external and common global variables to pointer size..
Mar 29 2018, 4:17 PM
rahulchaudhry updated the diff for D44848: Align stubs for external and common global variables to pointer size..

Minimized test case.

Mar 29 2018, 4:14 PM
rahulchaudhry added inline comments to D44848: Align stubs for external and common global variables to pointer size..
Mar 29 2018, 2:39 PM
rahulchaudhry updated the diff for D44848: Align stubs for external and common global variables to pointer size..

Updated the comment and CHECK directives to match each other.

Mar 29 2018, 1:29 PM
rahulchaudhry updated the diff for D44848: Align stubs for external and common global variables to pointer size..

Moved EmitAlignment() out of the loop.

Mar 29 2018, 12:45 PM

Mar 27 2018

rahulchaudhry added inline comments to D44848: Align stubs for external and common global variables to pointer size..
Mar 27 2018, 5:46 PM
rahulchaudhry updated the diff for D44848: Align stubs for external and common global variables to pointer size..

80-char line length limit, and use '-relocation-model=pic' instead of '--relocation-model=pic'.

Mar 27 2018, 5:46 PM
rahulchaudhry added a comment to D44848: Align stubs for external and common global variables to pointer size..

You can add the test in llvm as an ll file.

Mar 27 2018, 5:18 PM
rahulchaudhry updated the diff for D44848: Align stubs for external and common global variables to pointer size..

Added a unit test.

Mar 27 2018, 5:16 PM

Mar 23 2018

rahulchaudhry added a comment to D44848: Align stubs for external and common global variables to pointer size..

Can you please add a unit test?

Mar 23 2018, 3:41 PM
rahulchaudhry created D44848: Align stubs for external and common global variables to pointer size..
Mar 23 2018, 3:24 PM