public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/arm/morello/main] cheri: elf: Use elfptr_t in _dl_protect_relro
@ 2022-08-05 19:34 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-08-05 19:34 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7880bbd37436b0acd01936b7ba143d1f13634e85
commit 7880bbd37436b0acd01936b7ba143d1f13634e85
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Mon Jun 21 10:51:05 2021 +0100
cheri: elf: Use elfptr_t in _dl_protect_relro
start/end should be capabilities now that l_addr is a capability.
Diff:
---
elf/dl-reloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 756bf950f6..abc72472ba 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -353,10 +353,10 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
void
_dl_protect_relro (struct link_map *l)
{
- ElfW(Addr) start = ALIGN_DOWN((l->l_addr
+ elfptr_t start = ALIGN_DOWN((l->l_addr
+ l->l_relro_addr),
GLRO(dl_pagesize));
- ElfW(Addr) end = ALIGN_DOWN((l->l_addr
+ elfptr_t end = ALIGN_DOWN((l->l_addr
+ l->l_relro_addr
+ l->l_relro_size),
GLRO(dl_pagesize));
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/arm/morello/main] cheri: elf: Use elfptr_t in _dl_protect_relro
@ 2022-11-23 14:45 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-11-23 14:45 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=faee37cd4c29f5265c817b05a0103486fd02a957
commit faee37cd4c29f5265c817b05a0103486fd02a957
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Mon Jun 21 10:51:05 2021 +0100
cheri: elf: Use elfptr_t in _dl_protect_relro
Derive the start of the relro area from the RW capability of the dso.
Diff:
---
elf/dl-reloc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 756bf950f6..4656015ea2 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -353,8 +353,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
void
_dl_protect_relro (struct link_map *l)
{
- ElfW(Addr) start = ALIGN_DOWN((l->l_addr
- + l->l_relro_addr),
+ elfptr_t start = ALIGN_DOWN(dl_rx_ptr (l, l->l_relro_addr),
GLRO(dl_pagesize));
ElfW(Addr) end = ALIGN_DOWN((l->l_addr
+ l->l_relro_addr
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/arm/morello/main] cheri: elf: Use elfptr_t in _dl_protect_relro
@ 2022-10-27 13:55 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-27 13:55 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2f3c9e7127b6fac0a712cf59b7a9a2f007bf7711
commit 2f3c9e7127b6fac0a712cf59b7a9a2f007bf7711
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Mon Jun 21 10:51:05 2021 +0100
cheri: elf: Use elfptr_t in _dl_protect_relro
Derive the start of the relro area from the RW capability of the dso.
Diff:
---
elf/dl-reloc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 756bf950f6..4656015ea2 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -353,8 +353,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
void
_dl_protect_relro (struct link_map *l)
{
- ElfW(Addr) start = ALIGN_DOWN((l->l_addr
- + l->l_relro_addr),
+ elfptr_t start = ALIGN_DOWN(dl_rx_ptr (l, l->l_relro_addr),
GLRO(dl_pagesize));
ElfW(Addr) end = ALIGN_DOWN((l->l_addr
+ l->l_relro_addr
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/arm/morello/main] cheri: elf: Use elfptr_t in _dl_protect_relro
@ 2022-10-26 15:17 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-26 15:17 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8170982f1b44370c40e5da166962bcb3d0bd4d34
commit 8170982f1b44370c40e5da166962bcb3d0bd4d34
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Mon Jun 21 10:51:05 2021 +0100
cheri: elf: Use elfptr_t in _dl_protect_relro
Derive the start of the relro area from the RW capability of the dso.
Diff:
---
elf/dl-reloc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 756bf950f6..4656015ea2 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -353,8 +353,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
void
_dl_protect_relro (struct link_map *l)
{
- ElfW(Addr) start = ALIGN_DOWN((l->l_addr
- + l->l_relro_addr),
+ elfptr_t start = ALIGN_DOWN(dl_rx_ptr (l, l->l_relro_addr),
GLRO(dl_pagesize));
ElfW(Addr) end = ALIGN_DOWN((l->l_addr
+ l->l_relro_addr
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-23 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05 19:34 [glibc/arm/morello/main] cheri: elf: Use elfptr_t in _dl_protect_relro Szabolcs Nagy
2022-10-26 15:17 Szabolcs Nagy
2022-10-27 13:55 Szabolcs Nagy
2022-11-23 14:45 Szabolcs Nagy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).