diff options
author | Ben Elliston <bje@au.ibm.com> | 2005-01-21 04:15:59 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2005-01-21 04:15:59 +0000 |
commit | 7a64f7b8d66f81748f711b5511e716abd63548e0 (patch) | |
tree | 54dfcc2826b25017f24d545bdc505859be4a3c23 /ld/pe-dll.c | |
parent | 753e3eb6f2b4236b9a357c2550b3b0df65f0221e (diff) | |
download | gdb-7a64f7b8d66f81748f711b5511e716abd63548e0.zip gdb-7a64f7b8d66f81748f711b5511e716abd63548e0.tar.gz gdb-7a64f7b8d66f81748f711b5511e716abd63548e0.tar.bz2 |
* ldlang.c (lang_reasonable_defaults): Remove.
(lang_process): Don't call lang_reasonable_defaults.
* ldexp.c (exp_assop): Remove #if 0'd code.
(exp_print_tree): Likewise.
* ldlang.c (lang_memory_region_lookup): Likewise.
(open_output): Likewise.
(lang_do_assignments_1): Likewise.
(lang_place_orphans): Likewise.
(lang_enter_output_section_statement): Likewise.
(lang_reasonable_defaults): Likewise.
* ldlang.h (struct lang_input_statement_struct): Likewise.
* mri.c (mri_draw_tree): Likewise.
(mri_load): Likewise.
* pe-dll.c (generate_reloc): Likewise.
(make_import_fixup_entry): Likewise.
(pe_as16): Likewise.
* emultempl/beos.em (set_pe_subsystem): Likewise.
* emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
* emultempl/pe.em: Likewise.
* emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r-- | ld/pe-dll.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c index 46b0a13..47c1466 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -1178,9 +1178,6 @@ generate_reloc (bfd *abfd, struct bfd_link_info *info) free (relocs); /* Warning: the allocated symbols are remembered in BFD and reused later, so don't free them! */ -#if 0 - free (symbol); -#endif } } @@ -2037,9 +2034,6 @@ make_import_fixup_entry (const char *name, symtab = xmalloc (6 * sizeof (asymbol *)); id3 = quick_section (abfd, ".idata$3", SEC_HAS_CONTENTS, 2); -#if 0 - quick_symbol (abfd, U ("_head_"), dll_symname, "", id2, BSF_GLOBAL, 0); -#endif quick_symbol (abfd, U ("_nm_thnk_"), name, "", UNDSEC, BSF_GLOBAL, 0); quick_symbol (abfd, U (""), dll_symname, "_iname", UNDSEC, BSF_GLOBAL, 0); quick_symbol (abfd, "", fixup_name, "", UNDSEC, BSF_GLOBAL, 0); @@ -2418,18 +2412,6 @@ pe_get32 (bfd *abfd, int where) return b[0] + (b[1] << 8) + (b[2] << 16) + (b[3] << 24); } -#if 0 /* This is not currently used. */ - -static unsigned int -pe_as16 (void *ptr) -{ - unsigned char *b = ptr; - - return b[0] + (b[1] << 8); -} - -#endif - static unsigned int pe_as32 (void *ptr) { |