summaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2004-01-26 19:11:55 +0000
committerDavid Carlton <carlton@bactrian.org>2004-01-26 19:11:55 +0000
commitfeff3e492f1aff01b62a61e38e20fc7e8fc89946 (patch)
tree08c456fb63098f7b46e1dfa74746c8ab87a74e8c /bfd/elflink.h
parentaa0e88e3d758559942e192f3075a3edc0b2f222d (diff)
downloadbinutils-gdb-carlton_dictionary-branch.tar.gz
2004-01-26 David Carlton <carlton@kealia.com>carlton_dictionary-branch
* Merge with mainline; tag is carlton_dictionary-20040126-merge.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index f558e1c51ac..c37d7398d01 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -5801,7 +5801,10 @@ elf_gc_sections (bfd *abfd, struct bfd_link_info *info)
|| info->emitrelocations
|| !is_elf_hash_table (info->hash)
|| elf_hash_table (info)->dynamic_sections_created)
- return TRUE;
+ {
+ (*_bfd_error_handler)(_("Warning: gc-sections option ignored"));
+ return TRUE;
+ }
/* Apply transitive closure to the vtable entry usage info. */
elf_link_hash_traverse (elf_hash_table (info),