This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add CFI to x86_64 RTLD_START
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Keno Fischer <keno at juliacomputing dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 04 Jul 2016 20:23:08 +0200
- Subject: Re: [PATCH] Add CFI to x86_64 RTLD_START
- Authentication-results: sourceware.org; auth=none
- References: <CABV8kRzPpdhRsWOsU+zNEc7AcAqTqm1xdWxM0rufGAjk=yn4TA@mail.gmail.com>
Keno Fischer <keno@juliacomputing.com> writes:
> diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h
> index ed0c1a8..7a246d4 100644
> --- a/sysdeps/x86_64/dl-machine.h
> +++ b/sysdeps/x86_64/dl-machine.h
> @@ -141,10 +141,15 @@ elf_machine_runtime_setup (struct link_map *l,
> int lazy, int profile)
> .align 16\n\
> .globl _start\n\
> .globl _dl_start_user\n\
> -_start:\n\
> +_start:\n"\
> +CFI_STARTPROC "\n"\
> +CFI_UNDEFINED(%rip) "\n\
No need for backslash continuation outside of the string literals.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."