diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-01-12 05:04:04 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-01-12 05:04:04 +0000 |
commit | cc38364d44b1b7c99fed9f97a66b7e3f62663021 (patch) | |
tree | edee2cedf4170f7b3af2512ccf43f5cb86066334 /ld/ldlang.c | |
parent | ba1c97e74792eafab9e0ea54b28bba520b24ff1a (diff) | |
download | gdb-cc38364d44b1b7c99fed9f97a66b7e3f62663021.zip gdb-cc38364d44b1b7c99fed9f97a66b7e3f62663021.tar.gz gdb-cc38364d44b1b7c99fed9f97a66b7e3f62663021.tar.bz2 |
Don't use const with reloc_howto_type, since it's now defined to be const.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 759e9fc..3f3809c 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2125,7 +2125,12 @@ static void lang_finish () { struct bfd_link_hash_entry *h; - boolean warn = link_info.relocateable ? false : true; + boolean warn; + + if (link_info.relocateable || link_info.shared) + warn = false; + else + warn = true; if (entry_symbol == (char *) NULL) { @@ -2581,6 +2586,8 @@ lang_process () current_target = default_target; open_input_bfds (statement_list.head, false); + ldemul_after_open (); + /* Build all sets based on the information gathered from the input files. */ ldctor_build_sets (); @@ -2776,7 +2783,7 @@ lang_add_data (type, exp) void lang_add_reloc (reloc, howto, section, name, addend) bfd_reloc_code_real_type reloc; - const reloc_howto_type *howto; + reloc_howto_type *howto; asection *section; const char *name; union etree_union *addend; |