diff options
author | Claudiu Zissulescu <claziss@gmail.com> | 2019-02-09 11:07:42 +0100 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gmail.com> | 2019-02-09 11:07:42 +0100 |
commit | a0e90a73f0dc7e44c980ef5ea512eb7a3bd0cabc (patch) | |
tree | 5234055e2e9ec8d8360e6a8cf5551b0a5d78202d /ld/emultempl/arclinux.em | |
parent | d1ea488747b9ca046c5b68ece2de757e1f357e3a (diff) | |
download | gdb-a0e90a73f0dc7e44c980ef5ea512eb7a3bd0cabc.zip gdb-a0e90a73f0dc7e44c980ef5ea512eb7a3bd0cabc.tar.gz gdb-a0e90a73f0dc7e44c980ef5ea512eb7a3bd0cabc.tar.bz2 |
[ARC] don't force _init/_fini as DT_INIT/DT_FINI.
Recent gcc commit b4371b277f1e ("[ARC] Enable init_array support")
inhibits DT_"INIT,FINI} in favor of DT_{INIT,FINI}ARRAY.
Even prior to that, it seems ARC port is the only one with this
special DT_INIT/FINI handling in linker emulation. Removing it
doesn't seem to change any uClibc/glibc testsuite results,
so this can RIP anyways.
bfd/
2019-02-01 Vineet Gupta <vgupta@synopsys.com>
* elf32-arc.c: Delete init_str, fini_str
ld/
2019-02-01 Vineet Gupta <vgupta@synopsys.com>
* emultempl/arclinux.em : Delete special INIT/FINI handling.
Diffstat (limited to 'ld/emultempl/arclinux.em')
-rw-r--r-- | ld/emultempl/arclinux.em | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/ld/emultempl/arclinux.em b/ld/emultempl/arclinux.em index 3163712..48b6a61 100644 --- a/ld/emultempl/arclinux.em +++ b/ld/emultempl/arclinux.em @@ -1,7 +1,7 @@ # This shell script emits a C file. -*- C -*- # Copyright (C) 2007-2019 Free Software Foundation, Inc. # -# Copyright 2008-2012 Synopsys Inc. +# Copyright 2008-2019 Synopsys Inc. # # This file is part of GLD, the Gnu Linker. # @@ -23,30 +23,3 @@ # This file is sourced from elf32.em, and defines extra arc-linux # specific routines. # -cat >>e${EMULATION_NAME}.c <<EOF -extern char * init_str; -extern char * fini_str; -EOF - -PARSE_AND_LIST_PROLOGUE=' -#define OPTION_INIT 300+1 -#define OPTION_FINI (OPTION_INIT+1) -' -PARSE_AND_LIST_LONGOPTS=' - /* PE options */ - { "init", required_argument, NULL, OPTION_INIT }, - { "fini", required_argument, NULL, OPTION_FINI }, -' - -# FIXME: Should set PARSE_AND_LIST_OPTIONS to provide a short description -# of the options. - -PARSE_AND_LIST_ARGS_CASES=' - case OPTION_FINI: - fini_str = optarg; - break; - - case OPTION_INIT: - init_str = optarg; - break; -' |