Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chrome.clang] applied patch D145474 #26

Merged

Conversation

unicornx
Copy link

Back porting https://reviews.llvm.org/D145474?id=504334 Note there were 3 unit-test cases failed with this patch, but these failures exits on latest main(17) at that time, not on clang 16 we use here.
These failed cases has been fixed by
https://reviews.llvm.org/rG0ddc283a29a7a2d5415a3d363396e39c262a5dc2 and D145474 also caught up with
https://reviews.llvm.org/D145474?id=505297. But I don't catch up with it because I think they will not impact our riscv64.

The patch I apploed in this commitment fixed following two bugs:

  • ld.lld: error: obj/buildtools/third_party/libc++/libc++/algorithm.o:(.rodata.str1.1): offset is outside the section

  • compile error from third_party/crashpad/crashpad/client/crashpad_info_note.S target: //third_party/crashpad/crashpad/client:client

    simplified code sample: .section .note.sample.info,"a",%note .balign 4 _SYMBOL2: #if defined(__LP64__) .quad _SYMBOL1 - _SYMBOL2 #else .long _SYMBOL1 - _SYMBOL2 #endif // __LP64__ compiler reports error: /tmp/t-739c86.s:8:9: error: Unsupported relocation type .quad _SYMBOL1 - _SYMBOL2

Back porting https://reviews.llvm.org/D145474?id=504334
Note there were 3 unit-test cases failed with this patch, but these
failures exits on latest main(17) at that time, not on clang 16 we
use here.
These failed cases has been fixed by
https://reviews.llvm.org/rG0ddc283a29a7a2d5415a3d363396e39c262a5dc2
and D145474 also caught up with
https://reviews.llvm.org/D145474?id=505297. But I don't catch up with
it because I think they will not impact our riscv64.

The patch I apploed in this commitment fixed following two bugs:
- ld.lld: error: obj/buildtools/third_party/libc++/libc++/algorithm.o:(.rodata.str1.1): offset is outside the section
- compile error from third_party/crashpad/crashpad/client/crashpad_info_note.S
  target: //third_party/crashpad/crashpad/client:client

  simplified code sample:
  ```
    .section .note.sample.info,"a",%note
    .balign 4
  _SYMBOL2:
  #if defined(__LP64__)
    .quad _SYMBOL1 - _SYMBOL2
  #else
    .long _SYMBOL1 - _SYMBOL2
  #endif  // __LP64__
  ```
  compiler reports error:
  /tmp/t-739c86.s:8:9: error: Unsupported relocation type
  .quad _SYMBOL1 - _SYMBOL2

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
@unicornx unicornx changed the title applied patch D145474 [chrome.clang] applied patch D145474 Mar 15, 2023
@unicornx unicornx self-assigned this Mar 15, 2023
@unicornx unicornx merged commit 76ed3b2 into aosp-riscv:riscv64_109.0.5414.87_dev_clang Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant