PkmX (Chih-Mao Chen)
User

Projects

User does not belong to any projects.

User Details

User Since
Aug 7 2017, 11:26 PM (58 w, 4 d)

Recent Activity

Tue, Sep 4

PkmX added a comment to D43157: [RISCV] Properly evaluate VK_RISCV_PCREL_LO.

Ping? This is the last issue blocking lld's RISC-V tests to be rewritten to use llvm-mc and llvm-objdump right now.

Tue, Sep 4, 11:23 PM

Aug 14 2018

PkmX committed rL339652: Test commit: fix punctuation.
Test commit: fix punctuation
Aug 14 2018, 1:09 AM

Aug 13 2018

PkmX added inline comments to D43157: [RISCV] Properly evaluate VK_RISCV_PCREL_LO.
Aug 13 2018, 10:24 PM

Aug 7 2018

PkmX abandoned D41277: Implement --just-symbols.

Abandoning as this has been implemented by another commit.

Aug 7 2018, 11:17 PM
PkmX updated the diff for D39322: [lld] Support RISC-V.

@ruiu I've uploaded a new patch that adds the blank line to RISCVGlobalPointer as requested. As I do not have commit rights to the LLD repository, could you commit the patch if there are no last-minute issues.

Aug 7 2018, 7:15 PM · lld

Aug 6 2018

PkmX added a comment to D39322: [lld] Support RISC-V.

Apologies for my belated response. I think this patch is generally looking good. One thing I'd fix before submitting is to rewrite a test using assembly. We do not usually use YAML file for testing. Is there any reason you needed to write them in YAML?

Aug 6 2018, 7:26 PM · lld

Aug 2 2018

PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.

Rebased. NFC from last revision.

Aug 2 2018, 11:51 PM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.

RISCV now writes its own GOT header, with one entry that stores the address of .dynamic section. _GLOBAL_OFFSET_TABLE_ should be set to the head of .got so that _GLOBAL_OFFSET_TABLE_[0] == &_DYNAMIC.

Aug 2 2018, 11:50 PM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.

I've rebased the diff to latest trunk again. Some notable differences from last revision:

Aug 2 2018, 11:46 PM · lld
Herald added a reviewer for D39322: [lld] Support RISC-V: espindola.
Aug 2 2018, 7:47 PM · lld

Feb 12 2018

PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.

Rebase onto master.

Feb 12 2018, 7:33 PM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.

Rebase onto master.

Feb 12 2018, 7:33 PM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.

Rebase onto master.

Feb 12 2018, 7:32 PM · lld

Dec 21 2017

xiangzhai awarded D39322: [lld] Support RISC-V a Like token.
Dec 21 2017, 4:08 AM · lld
PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.

Rebase onto latest master.

Dec 21 2017, 3:23 AM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.

Rebase onto latest master.

Dec 21 2017, 3:22 AM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.

Rebase onto latest master.

Dec 21 2017, 3:22 AM · lld

Dec 19 2017

PkmX updated the diff for D41277: Implement --just-symbols.

Implement the -R option as an alias to either --rpath or --just-symbols. It is treated as latter if the argument file exists and is not a directory.

Dec 19 2017, 12:25 AM

Dec 18 2017

PkmX updated the diff for D41277: Implement --just-symbols.

Added a check to only allow ET_EXEC and the corresponding test.

Dec 18 2017, 11:13 PM

Dec 15 2017

PkmX updated the diff for D41277: Implement --just-symbols.
  • Copy symbol type, size, binding, etc, like D39348.
  • Update test cases.
Dec 15 2017, 8:42 PM
PkmX updated the diff for D41277: Implement --just-symbols.
Dec 15 2017, 8:29 PM
PkmX added inline comments to D41277: Implement --just-symbols.
Dec 15 2017, 8:24 PM
PkmX created D41277: Implement --just-symbols.
Dec 15 2017, 1:07 AM

Dec 11 2017

PkmX added a comment to D39348: Implement --just-symbols..

What is your use case to specify only single --just-symbol file ?

Dec 11 2017, 7:12 AM

Dec 10 2017

PkmX added a comment to D39348: Implement --just-symbols..

If the only input file is specified as the argument of --just-symbol, lld will error out (ld.bfd accepts this):

Dec 10 2017, 11:40 PM

Dec 7 2017

PkmX added inline comments to D39322: [lld] Support RISC-V.
Dec 7 2017, 3:20 AM · lld
PkmX added a comment to D39322: [lld] Support RISC-V.

Oops. It looks like I actually didn't submit some of these draft comments.

Dec 7 2017, 3:19 AM · lld

Nov 6 2017

PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.

Rebase onto latest master

Nov 6 2017, 11:13 PM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.
  • Rebase onto latest master
  • Clean up #includes
Nov 6 2017, 11:13 PM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.
  • Rebase onto latest master
  • Clean up #includes
Nov 6 2017, 11:12 PM · lld

Nov 1 2017

PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.

clang-format-diff RISCV::writePLT.

Nov 1 2017, 1:49 AM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.

Make R_RISCV_CALL reuse R_RISCV_PCREL_HI20 and R_RISCV_PCREL_LO12_I.

Nov 1 2017, 1:46 AM · lld

Oct 31 2017

PkmX added a comment to D39322: [lld] Support RISC-V.

I believe the best place would be either the issue tracker on the psABI doc, or RISC-V's sw-dev mailing list.

Oct 31 2017, 5:24 PM · lld

Oct 30 2017

PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.
  • Mark TLS_DTP_OFFSET as internal linkage.
Oct 30 2017, 11:56 PM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.
  • Use write32le.
  • Since __global_pointer$ is no longer absolute, remove workaround to make it a static link-time constant in PIE.
Oct 30 2017, 11:54 PM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.
  • Use {read,write}32le to read/write insturctions.
  • Make __global_pointer$ non-absolute.
Oct 30 2017, 11:52 PM · lld
PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.

De-template RISCV class.

Oct 30 2017, 4:26 AM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.

De-template RISCV class and assume little-endian.

Oct 30 2017, 4:25 AM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.
  • Renamed uint32_t to RelType.
  • Detemplate the RISCV class.
Oct 30 2017, 4:24 AM · lld

Oct 26 2017

PkmX updated the diff for D39324: [lld] Support TLS in RISC-V.
Oct 26 2017, 11:38 PM · lld
PkmX updated the diff for D39323: [lld] Support dynamic linking in RISC-V.
Oct 26 2017, 11:38 PM · lld
PkmX updated the diff for D39322: [lld] Support RISC-V.
Oct 26 2017, 11:37 PM · lld
PkmX added a comment to D39322: [lld] Support RISC-V.
In D39322#908393, @ruiu wrote:

As you said this looks like a pretty straightforward port to RISC-V. Thank you for doing this!

IIRC, last time when we discussed RISC-V support in lld, I had a concern that linker relaxation (moving code inside a section to make it compact) is virtually mandatory to link RISC-V object files. What is the situation of it? If you can link a small static executable with this patch, then it is probably no longer mandatory, but I want to make sure that that's the case.

Oct 26 2017, 7:49 PM · lld
PkmX created D39324: [lld] Support TLS in RISC-V.
Oct 26 2017, 1:27 AM · lld
PkmX created D39323: [lld] Support dynamic linking in RISC-V.
Oct 26 2017, 1:25 AM · lld
PkmX created D39322: [lld] Support RISC-V.
Oct 26 2017, 1:24 AM · lld

Oct 10 2017

PkmX created D38779: [RISCV] Fix createObjectWriter after r315327.
Oct 10 2017, 8:33 PM

Sep 28 2017

PkmX added a comment to D38311: [RISCV] Parse RISC-V eflags in ObjectYAML.

llvm-readobj would also need to be modified to recognize RISC-V eflags, and I think it is better to keep that in a separate commit.

Sep 28 2017, 12:16 PM
PkmX updated the diff for D38311: [RISCV] Parse RISC-V eflags in ObjectYAML.

Added RISC-V tests for ObjectYAML

Sep 28 2017, 2:57 AM

Sep 27 2017

PkmX created D38311: [RISCV] Parse RISC-V eflags in ObjectYAML.
Sep 27 2017, 3:44 AM
PkmX created D38310: [RISCV] Define RISC-V specific eflags.
Sep 27 2017, 3:35 AM

Aug 8 2017

PkmX created D36455: [RISCV] Recognize new relocation types.
Aug 8 2017, 3:26 AM