This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, LD, AArch64] Move ELF options behind -z
- From: Sudakshina Das <Sudi dot Das at arm dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: nd <nd at arm dot com>, "nickc at redhat dot com" <nickc at redhat dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, Ramana Radhakrishnan <Ramana dot Radhakrishnan at arm dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Wed, 5 Jun 2019 10:11:11 +0000
- Subject: Re: [PATCH, LD, AArch64] Move ELF options behind -z
- References: <05992ce6-1fae-2354-d717-e3d1d6032d5f@arm.com>
Hi
On 16/04/2019 13:39, Sudakshina Das wrote:
> Hi
>
> This patch moves the current AArch64 ld options of --force-bti and
> --pac-plt to -z force-bti and -z pac-plt since these are ELF specific
> options.
>
> Build and regression tested on aarch64-none-linux-gnu.
> Is this ok for trunk?
>
> Sudi
Sorry this fell off my radar.
Ping.
Depending on whether this patch or
https://www.sourceware.org/ml/binutils/2019-06/msg00047.html gets
approval before, I will rebase one of them. I hope that rebase does not
need another approval.
Thanks
Sudi
>
> *** bfd/ChangeLog ***
>
> 2019-xx-xx Sudakshina Das <sudi.das@arm.com>
>
> * bfd-in.h: Change comment.
> * bfd-in2.h: Regenerate.
> * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update
> warning.
> * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
> Likwise.
>
> *** ld/ChangeLog ***
>
> 2019-xx-xx Sudakshina Das <sudi.das@arm.com>
>
> * NEWS: Update options names.
> * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
> (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
> (PARSE_AND_LIST_OPTIONS): Update to -z.
> (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
> (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
> (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
> * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
> * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
> * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
> * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
> * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
> * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
> * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
> * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
> * testsuite/ld-aarch64/bti-warn.d: Likewise.
> * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
> * testsuite/ld-aarch64/pac-plt-2.d: Likewise.