projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nios2: Call _bfd_elf_maybe_set_textrel to set DF_TEXTREL
[deliverable/binutils-gdb.git]
/
bfd
/
elfnn-ia64.c
diff --git
a/bfd/elfnn-ia64.c
b/bfd/elfnn-ia64.c
index 2ba9608e34973a653e453891c3d3cf8ddc73d6fe..d179bc45686b708d4a6420ac8a0ad8455a2c01ad 100644
(file)
--- a/
bfd/elfnn-ia64.c
+++ b/
bfd/elfnn-ia64.c
@@
-873,13
+873,11
@@
elfNN_ia64_relax_section (bfd *abfd, asection *sec,
return TRUE;
error_return:
return TRUE;
error_return:
- if (
isymbuf != NULL &&
(unsigned char *) isymbuf != symtab_hdr->contents)
+ if ((unsigned char *) isymbuf != symtab_hdr->contents)
free (isymbuf);
free (isymbuf);
- if (contents != NULL
- && elf_section_data (sec)->this_hdr.contents != contents)
+ if (elf_section_data (sec)->this_hdr.contents != contents)
free (contents);
free (contents);
- if (internal_relocs != NULL
- && elf_section_data (sec)->relocs != internal_relocs)
+ if (elf_section_data (sec)->relocs != internal_relocs)
free (internal_relocs);
return FALSE;
}
free (internal_relocs);
return FALSE;
}
@@
-942,11
+940,10
@@
elfNN_ia64_section_from_shdr (bfd *abfd,
flag. */
static bfd_boolean
flag. */
static bfd_boolean
-elfNN_ia64_section_flags (flagword *flags,
- const Elf_Internal_Shdr *hdr)
+elfNN_ia64_section_flags (const Elf_Internal_Shdr *hdr)
{
if (hdr->sh_flags & SHF_IA_64_SHORT)
{
if (hdr->sh_flags & SHF_IA_64_SHORT)
-
*
flags |= SEC_SMALL_DATA;
+
hdr->bfd_section->
flags |= SEC_SMALL_DATA;
return TRUE;
}
return TRUE;
}
@@
-1311,8
+1308,7
@@
elfNN_ia64_hash_copy_indirect (struct bfd_link_info *info,
struct elfNN_ia64_dyn_sym_info *dyn_i;
unsigned int count;
struct elfNN_ia64_dyn_sym_info *dyn_i;
unsigned int count;
- if (dir->info)
- free (dir->info);
+ free (dir->info);
dir->info = ind->info;
dir->count = ind->count;
dir->info = ind->info;
dir->count = ind->count;
@@
-1400,14
+1396,11
@@
elfNN_ia64_global_dyn_info_free (void **xentry,
struct elfNN_ia64_link_hash_entry *entry
= (struct elfNN_ia64_link_hash_entry *) xentry;
struct elfNN_ia64_link_hash_entry *entry
= (struct elfNN_ia64_link_hash_entry *) xentry;
- if (entry->info)
- {
- free (entry->info);
- entry->info = NULL;
- entry->count = 0;
- entry->sorted_count = 0;
- entry->size = 0;
- }
+ free (entry->info);
+ entry->info = NULL;
+ entry->count = 0;
+ entry->sorted_count = 0;
+ entry->size = 0;
return TRUE;
}
return TRUE;
}
@@
-1421,14
+1414,11
@@
elfNN_ia64_local_dyn_info_free (void **slot,
struct elfNN_ia64_local_hash_entry *entry
= (struct elfNN_ia64_local_hash_entry *) *slot;
struct elfNN_ia64_local_hash_entry *entry
= (struct elfNN_ia64_local_hash_entry *) *slot;
- if (entry->info)
- {
- free (entry->info);
- entry->info = NULL;
- entry->count = 0;
- entry->sorted_count = 0;
- entry->size = 0;
- }
+ free (entry->info);
+ entry->info = NULL;
+ entry->count = 0;
+ entry->sorted_count = 0;
+ entry->size = 0;
return TRUE;
}
return TRUE;
}
@@
-1914,7
+1904,7
@@
get_dyn_sym_info (struct elfNN_ia64_link_hash_table *ia64_info,
*size_p = size;
*info_p = info;
*size_p = size;
*info_p = info;
-has_space:
+
has_space:
/* Append the new one to the array. */
dyn_i = info + count;
memset (dyn_i, 0, sizeof (*dyn_i));
/* Append the new one to the array. */
dyn_i = info + count;
memset (dyn_i, 0, sizeof (*dyn_i));
@@
-3706,7
+3696,7
@@
elfNN_ia64_choose_gp (bfd *abfd, struct bfd_link_info *info, bfd_boolean final)
{
if (max_short_vma - min_short_vma >= 0x400000)
{
{
if (max_short_vma - min_short_vma >= 0x400000)
{
-overflow:
+
overflow:
_bfd_error_handler
/* xgettext:c-format */
(_("%pB: short data segment overflowed (%#" PRIx64 " >= 0x400000)"),
_bfd_error_handler
/* xgettext:c-format */
(_("%pB: short data segment overflowed (%#" PRIx64 " >= 0x400000)"),
@@
-4476,7
+4466,7
@@
elfNN_ia64_relocate_section (bfd *output_bfd,
case bfd_reloc_outofrange:
case bfd_reloc_overflow:
default:
case bfd_reloc_outofrange:
case bfd_reloc_overflow:
default:
-missing_tls_sec:
+
missing_tls_sec:
{
const char *name;
{
const char *name;
@@
-4745,6
+4735,10
@@
elfNN_ia64_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
flagword in_flags;
bfd_boolean ok = TRUE;
flagword in_flags;
bfd_boolean ok = TRUE;
+ /* FIXME: What should be checked when linking shared libraries? */
+ if ((ibfd->flags & DYNAMIC) != 0)
+ return TRUE;
+
if (!is_ia64_elf (ibfd) || !is_ia64_elf (obfd))
return TRUE;
if (!is_ia64_elf (ibfd) || !is_ia64_elf (obfd))
return TRUE;
@@
-4883,7
+4877,7
@@
elfNN_ia64_object_p (bfd *abfd)
flagword flags;
const char *name;
char *unwi_name, *unw_name;
flagword flags;
const char *name;
char *unwi_name, *unw_name;
-
bfd_size_type
amt;
+
size_t
amt;
if (abfd->flags & DYNAMIC)
return TRUE;
if (abfd->flags & DYNAMIC)
return TRUE;
@@
-5016,6
+5010,11
@@
elfNN_hpux_backend_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED,
break;
}
}
break;
}
}
+
+static void
+ignore_errors (const char *fmt ATTRIBUTE_UNUSED, ...)
+{
+}
\f
#define TARGET_LITTLE_SYM ia64_elfNN_le_vec
#define TARGET_LITTLE_NAME "elfNN-ia64-little"
\f
#define TARGET_LITTLE_SYM ia64_elfNN_le_vec
#define TARGET_LITTLE_NAME "elfNN-ia64-little"
@@
-5113,7
+5112,7
@@
elfNN_hpux_backend_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED,
We don't want to flood users with so many error messages. We turn
off the warning for now. It will be turned on later when the Intel
compiler is fixed. */
We don't want to flood users with so many error messages. We turn
off the warning for now. It will be turned on later when the Intel
compiler is fixed. */
-#define elf_backend_link_order_error_handler
NULL
+#define elf_backend_link_order_error_handler
ignore_errors
#include "elfNN-target.h"
#include "elfNN-target.h"
This page took
0.035341 seconds
and
4
git commands to generate.