diff options
author | Alan Modra <amodra@gmail.com> | 2018-01-12 10:37:28 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-01-12 21:13:11 +1030 |
commit | a78eea1623aa6d05a395a73414bf01f6c8ae81c6 (patch) | |
tree | a1fae91ca530cd09d857020b5f5d762deab57293 /bfd/aoutx.h | |
parent | 87e79a6515951fece72ee08871dd6e112b1042ba (diff) | |
download | gdb-a78eea1623aa6d05a395a73414bf01f6c8ae81c6.zip gdb-a78eea1623aa6d05a395a73414bf01f6c8ae81c6.tar.gz gdb-a78eea1623aa6d05a395a73414bf01f6c8ae81c6.tar.bz2 |
Fix override of common symbols for a.out
The default should be bfd_link_common_skip_none, as in the original
patch at https://sourceware.org/ml/binutils/2002-07/msg00717.html
* aoutx.h (aout_link_check_ar_symbols): Remove default and handle
bfd_link_common_skip_none in switch.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 6dc4c68..eec9c4a 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -3366,13 +3366,14 @@ aout_link_check_ar_symbols (bfd *abfd, switch (info->common_skip_ar_symbols) { + case bfd_link_common_skip_none: + break; case bfd_link_common_skip_text: skip = (type == (N_TEXT | N_EXT)); break; case bfd_link_common_skip_data: skip = (type == (N_DATA | N_EXT)); break; - default: case bfd_link_common_skip_all: skip = 1; break; |