* elflink.c: Formatting.

This commit is contained in:
Alan Modra
2007-09-30 13:43:23 +00:00
parent 0f02bbd9f8
commit a0c8462faf
2 changed files with 122 additions and 118 deletions

View File

@ -1,3 +1,7 @@
2007-09-30 Alan Modra <amodra@bigpond.net.au>
* elflink.c: Formatting.
2007-09-29 Alan Modra <amodra@bigpond.net.au>
* elflink.c (resolve_symbol): Handle symbols in SEC_MERGE

View File

@ -7314,16 +7314,17 @@ resolve_symbol (const char * name,
}
/* Hmm, haven't found it yet. perhaps it is a global. */
global_entry = bfd_link_hash_lookup (finfo->info->hash, name, FALSE, FALSE, TRUE);
global_entry = bfd_link_hash_lookup (finfo->info->hash, name,
FALSE, FALSE, TRUE);
if (!global_entry)
return FALSE;
if (global_entry->type == bfd_link_hash_defined
|| global_entry->type == bfd_link_hash_defweak)
{
* result = global_entry->u.def.value
*result = (global_entry->u.def.value
+ global_entry->u.def.section->output_section->vma
+ global_entry->u.def.section->output_offset;
+ global_entry->u.def.section->output_offset);
#ifdef DEBUG
printf ("Found GLOBAL symbol '%s' with value %8.8lx\n",
global_entry->root.string, (unsigned long) *result);
@ -7372,10 +7373,10 @@ resolve_section (const char * name,
}
static void
undefined_reference (const char * reftype,
const char * name)
undefined_reference (const char *reftype, const char *name)
{
_bfd_error_handler (_("undefined %s reference in complex symbol: %s"), reftype, name);
_bfd_error_handler (_("undefined %s reference in complex symbol: %s"),
reftype, name);
}
static bfd_boolean
@ -7426,7 +7427,7 @@ eval_symbol (bfd_vma * result,
symlen = strtol (sym, (char **) symp, 10);
sym = *symp + 1; /* Skip the trailing ':'. */
if ((symend < sym) || ((symlen + 1) > bufsz))
if (symend < sym || symlen + 1 > bufsz)
{
bfd_set_error (bfd_error_invalid_operation);
return FALSE;
@ -7608,8 +7609,7 @@ get_value (bfd_vma size,
}
static void
decode_complex_addend
(unsigned long * start, /* in bits */
decode_complex_addend (unsigned long *start, /* in bits */
unsigned long *oplen, /* in bits */
unsigned long *len, /* in bits */
unsigned long *wordsz, /* in bytes */
@ -7670,9 +7670,9 @@ bfd_elf_perform_complex_relocation (bfd *input_bfd,
if (! trunc_p)
{
/* Now do an overflow check. */
if (bfd_check_overflow ((signed_p ?
complain_overflow_signed :
complain_overflow_unsigned),
if (bfd_check_overflow ((signed_p
? complain_overflow_signed
: complain_overflow_unsigned),
len, 0, (8 * wordsz),
relocation) == bfd_reloc_overflow)
(*_bfd_error_handler)