aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-01-01 10:01:45 +0000
committerAlan Modra <amodra@gmail.com>2004-01-01 10:01:45 +0000
commit2627de8318f2dcb4f2406a999af8dce6c0929963 (patch)
treef9a0f2bd91ca823426b8b0dc32b6fd5c2f0778ca /bfd/elflink.h
parentb13797763fdda0a37733cf06775e2e7e14364436 (diff)
downloadgdb-2627de8318f2dcb4f2406a999af8dce6c0929963.zip
gdb-2627de8318f2dcb4f2406a999af8dce6c0929963.tar.gz
gdb-2627de8318f2dcb4f2406a999af8dce6c0929963.tar.bz2
* elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
* elf32-h8300.c (elf32_h8_gc_mark_hook): New function. (elf32_h8_gc_sweep_hook): New function. (elf_backend_gc_mark_hook): Define. (elf_backend_gc_sweep_hook): Define. (elf_backend_can_gc_sections): Define.
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 f558e1c..c37d739 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),