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] merge riscv64_109.0.5414.87_dev_clang into riscv64_109.0.5414.87_dev #42

Conversation

unicornx
Copy link

We don't need maintain two dev branches from now on.
All changes about chrome and clang are both in on dev branch.

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
FIXME: onlu for linux host, not for windows...

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
For Chromium 109.0.5414.87, which uses android ndk r23, and it
supports lowest API level 19 for arm32 & intel32.
But when we are porting riscv64, we are using android ndk r26,
and the lowest API level it supports is 21 for all ARCHs.

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
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>
we had two ndk, one for building clang, another for building
chromium, but now I think only one should be fine. I use
the one target for the board.

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
@unicornx unicornx self-assigned this Apr 23, 2023
@unicornx unicornx merged commit 2e39fa1 into aosp-riscv:riscv64_109.0.5414.87_dev Apr 23, 2023
@unicornx unicornx changed the title merge riscv64_109.0.5414.87_dev_clang into riscv64_109.0.5414.87_dev [chrome] merge riscv64_109.0.5414.87_dev_clang into riscv64_109.0.5414.87_dev Apr 23, 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