zijunzhao
1581f63e6d
Nullability check for getopt module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I01cab7eacee486348fd90bd2a0d34c41873c017a
2023-03-13 18:03:29 +00:00
Zijun Zhao
e718f8b912
Merge "Nullability check for mntent module"
2023-03-13 18:02:39 +00:00
Treehugger Robot
0a9fd0e77e
Merge "Nullability check for signalfd module"
2023-03-13 17:38:38 +00:00
Yi Kong
9b4cf9733f
Workaround boot loop by turning off stack protector check for noreturn calls
...
clang-r487747 added stack protector capability to check noreturn calls.
This caused the system to boot loop. Turn off the new capabilities as a
temporary workaround.
Test: build and boot
Change-Id: I62c912619dfdd2384672d504ce5d52330bf2a102
2023-03-12 19:45:55 +09:00
zijunzhao
424cb2cbfd
Nullability check for mntent module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I8cbf1960c162c1def670b016663fbf10c2f8cb93
2023-03-11 01:52:28 +00:00
zijunzhao
98f116b319
Nullability check for signalfd module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I47efddc9c0e217fcb29b3f4f1e2d30f27b23c05f
2023-03-11 01:51:02 +00:00
Treehugger Robot
d20ab5f9c2
Merge "Nullability check for resolv module" am: 1cccc1a059
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2468121
Change-Id: I7feeefe8a5c418a978a59a9df8da7c7a4e6cf2e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-11 01:33:48 +00:00
Zijun Zhao
2109a6e891
Merge "Nullability check for thread module" am: dddea28a74
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2480425
Change-Id: If52bf6bab08bf7d692c693d7285fba4eefa1f926
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-11 01:33:37 +00:00
Treehugger Robot
1cccc1a059
Merge "Nullability check for resolv module"
2023-03-11 01:26:13 +00:00
Zijun Zhao
dddea28a74
Merge "Nullability check for thread module"
2023-03-11 01:00:27 +00:00
zijunzhao
e589574d22
Nullability check for thread module
...
Bugs: b/245972273
Test: adb shell
Change-Id: Id93d0456e063adf0d41483a1f99f66c2d67bd4df
2023-03-10 20:37:27 +00:00
zijunzhao
16c23883bd
Nullability check for resolv module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I3ee948b3c832ece1969453d499e6f5de5d0bd85e
2023-03-10 01:40:04 +00:00
Elliott Hughes
b34fa94a6a
Merge "The syscall call uses the 'tail' instruction call" am: d2e55dd05b
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2479395
Change-Id: Iaa7ae89d96fb61b2ed910029f30ea033c0508dee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 22:54:54 +00:00
Elliott Hughes
d2e55dd05b
Merge "The syscall call uses the 'tail' instruction call"
2023-03-09 22:03:42 +00:00
caowencheng
c42c74138c
The syscall call uses the 'tail' instruction call
...
If the 'j' command is used here,it cannot always be called.
The 'tail' command is used here, let the compiler decide
which instruction to use,when the call distance is less
than 1M, it will be compiled into 'j' command, and when
the distance is greater than 1M, it will be compiled
into 'aupic' and 'jr' command.
Test: llvm-objdump -d
Change-Id: I53d8aa7f54b9c4c96fce491487dcba7b63348219
Signed-off-by: caowencheng <caowencheng@eswincomputing.com>
2023-03-09 07:44:03 +00:00
Zijun Zhao
015c9bef70
Merge "Nullability check for pidfd module" am: 7f8133dc2f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2478476
Change-Id: I5145cb5986ae49e330e9b83fe93500561d8c6ab4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 00:31:05 +00:00
Zijun Zhao
ff70562f63
Merge "Nullability check for utsname module" am: 85fc6b141e
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2478475
Change-Id: I87059a7c2f882b27672e4c2f3455eb20021645f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 00:30:47 +00:00
Zijun Zhao
7524cfe6d5
Merge "Nullability check for assert module" am: 5bfbc5330f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2478455
Change-Id: I580c132ea644ad14fac589daa8c046c6636a41de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 00:30:27 +00:00
Zijun Zhao
7f8133dc2f
Merge "Nullability check for pidfd module"
2023-03-09 00:06:12 +00:00
Zijun Zhao
85fc6b141e
Merge "Nullability check for utsname module"
2023-03-08 23:47:42 +00:00
Zijun Zhao
5bfbc5330f
Merge "Nullability check for assert module"
2023-03-08 23:47:30 +00:00
Elliott Hughes
f0b3958c3a
Merge "riscv64: use tail
for tail calls." am: 6cb7db2b03
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2477975
Change-Id: I7a2a5a4f275ae5f769c1c2bd066376b67e31dac5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 21:49:07 +00:00
Elliott Hughes
6cb7db2b03
Merge "riscv64: use tail
for tail calls."
2023-03-08 21:13:37 +00:00
zijunzhao
edc554dace
Nullability check for pidfd module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I825cd4091f6e9d052a332e91c8b2455dd5c71b01
2023-03-08 21:06:57 +00:00
zijunzhao
f6f0c9dd1b
Nullability check for utsname module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I713c54998ab32e3dc9a6d53fd64523f5fdcbf79a
2023-03-08 21:05:19 +00:00
zijunzhao
698b6160a3
Nullability check for assert module
...
Bugs: b/245972273
Test: adb shell
Change-Id: Ic682d7bfd1dab53a776bcd783fbff9df07e309f5
2023-03-08 21:02:48 +00:00
Treehugger Robot
4c72041526
Merge "Fix the compile errors "R_RISCV_JAL out of rang" when the jump range is greater than 1M memory space between vfork and __set_errno_internal" am: a7015eaa64
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2474706
Change-Id: I1a87bff49b6bc78ce1a1c1a5e737fa8e97d3ba47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 18:53:00 +00:00
Elliott Hughes
b0d3f0bcef
riscv64: use tail
for tail calls.
...
Don't assume that a `j` will always be in range. Let the toolchain
come up with the shortest sequence that will actually work.
Test: llvm-objdump -d
Change-Id: I497a68ecae434aad173c2b1c8024aed3756b8440
2023-03-08 18:22:29 +00:00
Treehugger Robot
a7015eaa64
Merge "Fix the compile errors "R_RISCV_JAL out of rang" when the jump range is greater than 1M memory space between vfork and __set_errno_internal"
2023-03-08 18:19:19 +00:00
Treehugger Robot
1e0c0ee4f3
Merge "Nullability check for grp module" am: 7f2f9410ab
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2468120
Change-Id: Iab2b10982d485ecf5518b602114e1f313544b1a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 06:58:29 +00:00
Treehugger Robot
7f2f9410ab
Merge "Nullability check for grp module"
2023-03-08 06:26:15 +00:00
Zijun Zhao
a402b8e2e7
Merge "Nullability check for stdio module" am: 2c445d9979
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2461794
Change-Id: Iaaa8b4528be5292b506631a844155a4f3b1b679d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 05:44:58 +00:00
Zijun Zhao
2c445d9979
Merge "Nullability check for stdio module"
2023-03-08 05:16:57 +00:00
caowencheng
d27c83fbd4
Fix the compile errors "R_RISCV_JAL out of rang" when the jump range is greater than 1M memory space between vfork and __set_errno_internal
...
the "tail" command is used here, let the compiler decide
which instruction to use. when the call distance is less
than 1M, it will be compiled into "jr" command, and when
the distance is greater than 1M, it will be compiled
into "aupic" and "jr" command.
Test: make libc
Change-Id: I80d099d25c7cc2439a297d8afc65abeb5a7a360c
Signed-off-by: caowencheng <caowencheng@eswincomputing.com>
2023-03-08 01:44:50 +00:00
Alistair Delva
18604dac1f
Merge "Guard registers definitions for riscv64" am: 78f71a53e5
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2474284
Change-Id: Ifd223031914e330d61200a3012f448d37b3d4eea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 01:36:52 +00:00
Alistair Delva
78f71a53e5
Merge "Guard registers definitions for riscv64"
2023-03-08 00:55:11 +00:00
zijunzhao
33102fb381
Nullability check for grp module
...
Bugs: b/245972273
Test: adb shell
Change-Id: Ic45b8ff095f5e388389078b63ac2cd5e745422cf
2023-03-08 00:15:01 +00:00
Elliott Hughes
c62de452dc
Merge "Sync with upstream openbsd." am: 75a114b0b1
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2472608
Change-Id: Id2d83c9582e16accfee19914dcb01469e97bed34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 17:08:18 +00:00
Elliott Hughes
92009eca5f
Merge "Remove #pragma workarounds for %b/%B." am: b6e7e2c39b
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2472587
Change-Id: Icb6d6ab0113628e5e25b8a17959f01165da448c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 17:08:04 +00:00
Elliott Hughes
bb60bfd795
Merge "Add the %b/%B PRI* and SCN* macros." am: 056ce2eb34
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2472606
Change-Id: I28f5447e6a6fa7abbd256e82395a32202e0e98fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 17:07:19 +00:00
Nelly Vouzoukidou
1cb31580f8
Guard registers definitions for riscv64
...
Guarding the definitions of registers with `#if definded(__USE_GNU)`.
This resolves a name conflict with the mesa3d library when
Virgl is enabled.
Test: launch_cvd -console=true -guest_enforce_security=false\
--gpu_mode=drm_virgl
Change-Id: I4402500eff74e26343700c099dd397b8a19a5ee3
2023-03-07 17:03:41 +00:00
Elliott Hughes
75a114b0b1
Merge "Sync with upstream openbsd."
2023-03-07 16:48:06 +00:00
Elliott Hughes
b6e7e2c39b
Merge "Remove #pragma workarounds for %b/%B."
2023-03-07 16:24:18 +00:00
Elliott Hughes
056ce2eb34
Merge "Add the %b/%B PRI* and SCN* macros."
2023-03-07 16:21:44 +00:00
zijunzhao
00a3dbaab6
Nullability check for stdio module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I6d1f2afad6ab3f884795a2d33875684a14fe54d6
2023-03-07 01:07:19 +00:00
Elliott Hughes
53b6dfbc64
Sync with upstream openbsd.
...
Upstream made a change similar to our %s change, so we don't need that
difference any more. (But they didn't seem interested in our GNU
extensions, even though they're sensible ones that just ensure symmetry
between strftime() and strptime().)
Bug: http://b/167569813
Test: treehugger
Change-Id: I1d86d69c87b51719f0583341fafa7802869cd37e
2023-03-06 23:32:48 +00:00
Elliott Hughes
6f231ce503
Remove #pragma workarounds for %b/%B.
...
We have a new enough clang now that it knows about %b/%B.
Test: treehugger
Change-Id: I92f21e3bebdd652a4826ce8caa33400c3e3db72f
2023-03-06 23:30:12 +00:00
Elliott Hughes
ac34ad2ae6
Add the %b/%B PRI* and SCN* macros.
...
This was a suggested change:
https://open-std.org/JTC1/SC22/WG14/www/docs/n3072.htm#pri-and-scn-macros-are-missing-for-new-format-specifiers
That has been accepted, but at the time of writing, there isn't yet
a new PDF that includes the changes.
Test: treehugger
Change-Id: If7b68d246561716465e937a7d2c7482d2c739ce7
2023-03-06 21:41:54 +00:00
Elliott Hughes
9aa3875a0f
Merge "memset_chk into assembly file" am: 529c16a678
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2470724
Change-Id: I4f4f4a76e4ac3b206a442baec9e742657fb4574a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-06 21:28:07 +00:00
Florian Mayer
9cda760ab7
Merge "add test for using malloced stack for pthread_create" am: ee824ae6e0
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2461793
Change-Id: I1a9bb430809793897e0828a40c4790940095d733
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-06 21:27:55 +00:00