Commit graph

41140 commits

Author SHA1 Message Date
Treehugger Robot
c269f679d9 Merge "<syslog.h>: add facilitynames[] and prioritynames[]." into main am: 7bdcf765fa am: 7b6325cd05
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2799343

Change-Id: I7780f7b8f155aecfdf942aa8d3d0f44dd31420ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-24 02:16:03 +00:00
Treehugger Robot
7b6325cd05 Merge "<syslog.h>: add facilitynames[] and prioritynames[]." into main am: 7bdcf765fa
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2799343

Change-Id: Iac12646974c012dc61dc0b599b9dc09c564f1d5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-24 01:56:34 +00:00
Treehugger Robot
7bdcf765fa Merge "<syslog.h>: add facilitynames[] and prioritynames[]." into main 2023-10-24 01:46:46 +00:00
Elliott Hughes
afb8e05eb3 <syslog.h>: add facilitynames[] and prioritynames[].
Test: treehugger
Change-Id: I2a65b3088fe5a28b66e7d1c2a8caa10cb4467202
2023-10-23 17:47:15 -07:00
Treehugger Robot
667c884604 Merge "[NFC] Update comment explaining linker_phdr function return codes" into main am: 3a5b43c96f am: 31faf8ed8e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796255

Change-Id: I32a7758833df240869e3cdfa8f9bab9b5ef23aad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 15:20:45 +00:00
Treehugger Robot
7a5d36409c Merge "[NFC] Update comment explaining linker_phdr function return codes" into main am: 3a5b43c96f am: a531d9e610
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796255

Change-Id: Ic929da2370a6bbbaa3fec5413dfb911fc3f725bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 15:19:51 +00:00
Treehugger Robot
31faf8ed8e Merge "[NFC] Update comment explaining linker_phdr function return codes" into main am: 3a5b43c96f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796255

Change-Id: Ida48a55e5af75ab3fded3e166b0fc858f178bf18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 15:04:10 +00:00
Treehugger Robot
a531d9e610 Merge "[NFC] Update comment explaining linker_phdr function return codes" into main am: 3a5b43c96f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796255

Change-Id: I1e26134a25e631d6c61d0faa589f8c9e9f5f4104
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 15:02:26 +00:00
Treehugger Robot
3a5b43c96f Merge "[NFC] Update comment explaining linker_phdr function return codes" into main 2023-10-20 14:45:17 +00:00
Mitch Phillips
117e45e6dd [NFC] Update comment explaining linker_phdr function return codes
Looks like we all copy-pasted the same comment, and the original comment was wrong. These functions all return 0 on success, and -1 on error.

Change-Id: I11e635e0895fe1fa941d69b721b8ad9ff5eb7f15
Test: N/A
Bug: N/A
2023-10-20 13:32:35 +00:00
Kalesh Singh
f9cd5af4c3 Merge "bionic: tests: Remove PAGE_SIZE usage" into main am: a05918bd83 am: a69f61fdde
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2798272

Change-Id: I484780ff10ed71478b12f45cb223b688efb1bb67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 02:59:17 +00:00
Kalesh Singh
9971ea7830 Merge "bionic: tests: Remove PAGE_SIZE usage" into main am: a05918bd83 am: 76866e9305
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2798272

Change-Id: Ifc9ad2f7a5ad06632293b04b8a1aa22c84b83899
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 02:42:43 +00:00
Kalesh Singh
76866e9305 Merge "bionic: tests: Remove PAGE_SIZE usage" into main am: a05918bd83
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2798272

Change-Id: Id4681d0cf436b27d8ddfeb10e271ead933af3e25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 02:23:08 +00:00
Kalesh Singh
a69f61fdde Merge "bionic: tests: Remove PAGE_SIZE usage" into main am: a05918bd83
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2798272

Change-Id: I148f147040f69441f9d8d35a8e5dd3d5d34a41c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 02:19:31 +00:00
Kalesh Singh
a05918bd83 Merge "bionic: tests: Remove PAGE_SIZE usage" into main 2023-10-20 01:03:27 +00:00
Kalesh Singh
41c8951c91 bionic: tests: Remove PAGE_SIZE usage
Instead of the hardcoded PAGE_SIZE 4096 macro, use the
real system page-size as queried from the auxillary vector.

Bug: 277272383
Bug: 300367402
Test: atest -c bionic-unit-tests
Change-Id: I2f1ad1b431e36ef45e9f53f713ced6b06e0d4f70
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2023-10-19 15:49:50 -07:00
Elliott Hughes
a1fde8d21b Merge "Use the R_RISCV_TLSDESC constant in the linker." into main am: 777756d21d am: f0485d1425
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796852

Change-Id: Ifbcd297d9c52ef98e64588e9c747079a0617e216
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 22:08:46 +00:00
Treehugger Robot
be6706d58e Merge "Clarify one of the "missing" FreeBSD ELF constants." into main am: b8021fbe21 am: b282ac9488
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796853

Change-Id: I1efe1f1a5f5a63bd7969a227c8948f2b36b1a14d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 21:58:29 +00:00
Mitch Phillips
396117a76f Merge "Use DYNAMIC entries for MTE enablement" into main am: 363e743200 am: 47b5af1df0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2765590

Change-Id: I7bc4b61088adbc4806728643a67c39ef3dc2f60f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 21:54:27 +00:00
Edward Liaw
7d7176a281 Merge "Add test for replacing macro arguments" into main am: f2f99ec626 am: 889a7863bf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2794634

Change-Id: Ia386f80a9af619b9720690644ba34c0a786ce08d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 21:20:05 +00:00
Elliott Hughes
014b427892 Merge "Use the R_RISCV_TLSDESC constant in the linker." into main am: 777756d21d am: e7cb226c46
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796852

Change-Id: I95c925dcba538acfab1bd3e00bf4ba4986ff1e21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 19:22:34 +00:00
Edward Liaw
9beadc7d3f Merge "Replace macro arguments when applying replaceTokens" into main am: 2f993a51bd am: 5cbab1165a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2792161

Change-Id: Ibd462d72ab387108a0347355a78651536ab1b809
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 19:08:57 +00:00
Elliott Hughes
f0485d1425 Merge "Use the R_RISCV_TLSDESC constant in the linker." into main am: 777756d21d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796852

Change-Id: I14aa26af20a8bd6fa0a5368959cf2c17858091a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 18:49:19 +00:00
Elliott Hughes
e7cb226c46 Merge "Use the R_RISCV_TLSDESC constant in the linker." into main am: 777756d21d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796852

Change-Id: I57febae5cf20b690f22f728ecf24858190ef6abb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 18:48:43 +00:00
Elliott Hughes
777756d21d Merge "Use the R_RISCV_TLSDESC constant in the linker." into main 2023-10-19 18:03:22 +00:00
Treehugger Robot
bdc8f354b9 Merge "Clarify one of the "missing" FreeBSD ELF constants." into main am: b8021fbe21 am: bbedb0295b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796853

Change-Id: I19b316192bd491770adc10146cabb083d9d0261d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 00:46:24 +00:00
Treehugger Robot
b282ac9488 Merge "Clarify one of the "missing" FreeBSD ELF constants." into main am: b8021fbe21
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796853

Change-Id: Ia9f778d6b368e4c4c43be4a3564339efda16a0f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 00:16:34 +00:00
Treehugger Robot
bbedb0295b Merge "Clarify one of the "missing" FreeBSD ELF constants." into main am: b8021fbe21
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2796853

Change-Id: I204149fc75ace1ff1805416e5e58ec59ec857676
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 00:16:33 +00:00
Treehugger Robot
b8021fbe21 Merge "Clarify one of the "missing" FreeBSD ELF constants." into main 2023-10-18 23:41:36 +00:00
Elliott Hughes
dcfd870fac Clarify one of the "missing" FreeBSD ELF constants.
Test: treehugger
Change-Id: I7173ac704e6537a4e99a976baec46aa22df751bd
2023-10-18 14:47:12 -07:00
Elliott Hughes
c6c3e8614f Use the R_RISCV_TLSDESC constant in the linker.
Bug: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/issues/94
Test: treehugger
Change-Id: I1580686c8381be7dfdb5d7684934a176e0d11d77
2023-10-18 14:12:31 -07:00
Mitch Phillips
059d2db070 Merge "Use DYNAMIC entries for MTE enablement" into main am: 363e743200 am: 3b3a96de07
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2765590

Change-Id: I4d33620992b1a8e412092c3ce805dd1f9613d976
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 11:37:00 +00:00
Mitch Phillips
3b3a96de07 Merge "Use DYNAMIC entries for MTE enablement" into main am: 363e743200
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2765590

Change-Id: I8802844e24c42e9f94eda41a506c22bc7f69e2ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 11:06:33 +00:00
Mitch Phillips
47b5af1df0 Merge "Use DYNAMIC entries for MTE enablement" into main am: 363e743200
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2765590

Change-Id: Idac3c2c5b02ea2b44e2bd7c9aff9193e0a401c07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 11:05:54 +00:00
Mitch Phillips
363e743200 Merge "Use DYNAMIC entries for MTE enablement" into main 2023-10-18 10:17:37 +00:00
Edward Liaw
f60797d6b5 Merge "Add test for replacing macro arguments" into main am: f2f99ec626 am: a0b40cfe92
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2794634

Change-Id: I9ada157de151cab81786eee014ef753186b410ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 22:27:19 +00:00
Edward Liaw
a0b40cfe92 Merge "Add test for replacing macro arguments" into main am: f2f99ec626
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2794634

Change-Id: Iabcc708f25520bb5c5ace64589101d1b88d73b3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 21:55:28 +00:00
Edward Liaw
889a7863bf Merge "Add test for replacing macro arguments" into main am: f2f99ec626
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2794634

Change-Id: Ia210cf9a5a8adabb4e32a38f4225082e5111745f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 21:55:18 +00:00
Edward Liaw
f2f99ec626 Merge "Add test for replacing macro arguments" into main 2023-10-17 21:29:41 +00:00
Edward Liaw
dccb59f76d Merge "Replace macro arguments when applying replaceTokens" into main am: 2f993a51bd am: 61124943f8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2792161

Change-Id: If1bb8b5e38c3218766d53c5d4c1695c30e0a2f40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 21:04:18 +00:00
Edward Liaw
5cbab1165a Merge "Replace macro arguments when applying replaceTokens" into main am: 2f993a51bd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2792161

Change-Id: Iadbf0e544cf72ba0c40f5b303e6f39f624c1af39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 20:32:37 +00:00
Edward Liaw
61124943f8 Merge "Replace macro arguments when applying replaceTokens" into main am: 2f993a51bd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2792161

Change-Id: Id988f78613bd583174990a21136ea640ef492bbf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 20:31:10 +00:00
Edward Liaw
d903a736fb Add test for replacing macro arguments
Add test for aosp/2792161

Bug: 297317502
Test: cpp.py
Change-Id: I2eadd3b9371ec2f8b8c24107888cad5e3ae26f60
Signed-off-by: Edward Liaw <edliaw@google.com>
2023-10-17 20:09:42 +00:00
Edward Liaw
2f993a51bd Merge "Replace macro arguments when applying replaceTokens" into main 2023-10-17 19:59:02 +00:00
Edward Liaw
c291c39137 Replace macro arguments when applying replaceTokens
replaceTokens was only replacing tokens for cpp name clashes in the
macro body.  This change will also replace tokens in the arguments.

Bug: 297317502
Test: bionic/libc/kernel/tools/update_all.py
Change-Id: I102d000a8a4cea507b00c867df2a16106d8aed89
Signed-off-by: Edward Liaw <edliaw@google.com>
2023-10-17 17:42:40 +00:00
Mitch Phillips
7c1f3770af Use DYNAMIC entries for MTE enablement
Adds support for the dynamic entries to specify MTE enablement. This is
now the preferred way for dynamically linked executables to specify to
the loader what mode MTE should be in, and whether stack MTE should be
enabled. In future, this is also needed for MTE globals support.

Leave the existing ELF note parsing as a backup option because dynamic
entries are not supported for fully static executables, and there's
still a bunch of glue sitting around in the build system and tests that
explicitly include the note. When -fsanitize=memtag* is specified, lld
will create the note implicitly (along with the new dynamic entries),
but at some point once we've cleaned up all the old references to the
note, we can remove the notegen from lld.

Bug: N/A
Test: atest bionic-unit-tests CtsBionicTestCases --test-filter=*Memtag*
Test: Build/boot the device under _fullmte.

Change-Id: I954b7e78afa5ff4274a3948b968cfad8eba94d88
2023-10-17 13:49:24 +02:00
Elliott Hughes
674ef15589 Merge "Keep ioprio_value; <linux/ioprio.h> relies on this." into main am: 8fbdc58733 am: 211b6433db am: 289b4ef5f9 am: 7140fb9501
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2787554

Change-Id: Id8dd6880f6396bbbaa427ee2d9fe1bf1379a96bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-13 18:06:55 +00:00
Elliott Hughes
7140fb9501 Merge "Keep ioprio_value; <linux/ioprio.h> relies on this." into main am: 8fbdc58733 am: 211b6433db am: 289b4ef5f9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2787554

Change-Id: I32ac9794aa4137020a7be58bc7a8e2bf89f980db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-13 17:35:09 +00:00
Elliott Hughes
289b4ef5f9 Merge "Keep ioprio_value; <linux/ioprio.h> relies on this." into main am: 8fbdc58733 am: 211b6433db
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2787554

Change-Id: I0b2ed6fc60255813654b2450f721a0968c29a60d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-13 16:47:57 +00:00
Elliott Hughes
211b6433db Merge "Keep ioprio_value; <linux/ioprio.h> relies on this." into main am: 8fbdc58733
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2787554

Change-Id: Id07009d852a271f09a105604052e8b1a70df797c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-13 16:12:32 +00:00