public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/giulianob/heads/pfe_backport)] Backport targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries sec
@ 2021-10-25 15:06 Giuliano Belinassi
  0 siblings, 0 replies; 2+ messages in thread
From: Giuliano Belinassi @ 2021-10-25 15:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2d35914acc611b8780c52c2e6df78d56da37a61d

commit 2d35914acc611b8780c52c2e6df78d56da37a61d
Author: Joao Moreira <jmoreira@suse.de>
Date:   Wed Apr 17 18:24:23 2019 +0000

    Backport targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries section with writable flags to allow...
    
    gcc/ChangeLog
    2021-10-07  Giuliano Belinassi  <gbelinassi@suse.de>
    
            Backport from mainline
            2019-04-10  Joao Moreira  <jmoreira@suse.de>
    
            * targhooks.c (default_print_patchable_function_entry): Emit
            __patchable_function_entries section with writable flags to allow
            relocation resolution.

Diff:
---
 gcc/targhooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index c57967966c5..be0c557f1a2 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -1643,7 +1643,7 @@ default_print_patchable_function_entry (FILE *file,
       ASM_GENERATE_INTERNAL_LABEL (buf, "LPFE", patch_area_number);
 
       switch_to_section (get_section ("__patchable_function_entries",
-				      0, NULL));
+				      SECTION_WRITE | SECTION_RELRO, NULL));
       fputs (asm_op, file);
       assemble_name_raw (file, buf);
       fputc ('\n', file);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/giulianob/heads/pfe_backport)] Backport targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries sec
@ 2021-10-11 20:49 Giuliano Belinassi
  0 siblings, 0 replies; 2+ messages in thread
From: Giuliano Belinassi @ 2021-10-11 20:49 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:adb3e20ce0d7135e33f4944985ea7a9a436cc924

commit adb3e20ce0d7135e33f4944985ea7a9a436cc924
Author: Joao Moreira <jmoreira@suse.de>
Date:   Wed Apr 17 18:24:23 2019 +0000

    Backport targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries section with writable flags to allow...
    
            * targhooks.c (default_print_patchable_function_entry): Emit
            __patchable_function_entries section with writable flags to allow
            relocation resolution.

Diff:
---
 gcc/ChangeLog   | 10 ++++++++++
 gcc/targhooks.c |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c5cf067063..5ef0ef30c1c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+
+2021-10-07  Giuliano Belinassi  <gbelinassi@suse.de>
+
+	Backport from mainline
+	2019-04-10  Joao Moreira  <jmoreira@suse.de>
+
+	* targhooks.c (default_print_patchable_function_entry): Emit
+	__patchable_function_entries section with writable flags to allow
+	relocation resolution.
+
 2021-10-07  Giuliano Belinassi  <gbelinassi@suse.de>
 
 	Backport from mainline
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index c57967966c5..be0c557f1a2 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -1643,7 +1643,7 @@ default_print_patchable_function_entry (FILE *file,
       ASM_GENERATE_INTERNAL_LABEL (buf, "LPFE", patch_area_number);
 
       switch_to_section (get_section ("__patchable_function_entries",
-				      0, NULL));
+				      SECTION_WRITE | SECTION_RELRO, NULL));
       fputs (asm_op, file);
       assemble_name_raw (file, buf);
       fputc ('\n', file);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-25 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 15:06 [gcc(refs/users/giulianob/heads/pfe_backport)] Backport targhooks.c (default_print_patchable_function_entry): Emit __patchable_function_entries sec Giuliano Belinassi
  -- strict thread matches above, loose matches on Subject: below --
2021-10-11 20:49 Giuliano Belinassi

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).