From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2100) id 5FD75385803B; Mon, 11 Oct 2021 20:49:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FD75385803B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Giuliano Belinassi To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/giulianob/heads/pfe_backport)] Align __patchable_function_entries to POINTER_SIZE [PR93194] X-Act-Checkin: gcc X-Git-Author: Fangrui Song X-Git-Refname: refs/users/giulianob/heads/pfe_backport X-Git-Oldrev: adb3e20ce0d7135e33f4944985ea7a9a436cc924 X-Git-Newrev: 26c34a78c73e2138d450512d0697152c9dc53280 Message-Id: <20211011204952.5FD75385803B@sourceware.org> Date: Mon, 11 Oct 2021 20:49:52 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2021 20:49:52 -0000 https://gcc.gnu.org/g:26c34a78c73e2138d450512d0697152c9dc53280 commit 26c34a78c73e2138d450512d0697152c9dc53280 Author: Fangrui Song Date: Tue Jan 7 20:46:26 2020 -0800 Align __patchable_function_entries to POINTER_SIZE [PR93194] 2020-01-20 Fangrui Song gcc/ PR middle-end/93194 * targhooks.c (default_print_patchable_function_entry): Align to POINTER_SIZE. Diff: --- gcc/ChangeLog | 8 ++++++++ gcc/targhooks.c | 1 + 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ef0ef30c1c..fefc11a89fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2021-10-07 Giuliano Belinassi + Backport from mainline + + 2020-01-20 Fangrui Song + + PR middle-end/93194 + * targhooks.c (default_print_patchable_function_entry): Align to + POINTER_SIZE. 2021-10-07 Giuliano Belinassi diff --git a/gcc/targhooks.c b/gcc/targhooks.c index be0c557f1a2..aaf536acf17 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1644,6 +1644,7 @@ default_print_patchable_function_entry (FILE *file, switch_to_section (get_section ("__patchable_function_entries", SECTION_WRITE | SECTION_RELRO, NULL)); + assemble_align (POINTER_SIZE); fputs (asm_op, file); assemble_name_raw (file, buf); fputc ('\n', file);