projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent overflowing the selected_cpu_name buffer in the ARM assembler.
[deliverable/binutils-gdb.git]
/
bfd
/
linker.c
diff --git
a/bfd/linker.c
b/bfd/linker.c
index dec6d1d0ace372ebdb04662139ee16c6a09d4e49..86a7a1945ba7527b4280045c51472d1a9dc44435 100644
(file)
--- a/
bfd/linker.c
+++ b/
bfd/linker.c
@@
-1906,7
+1906,7
@@
_bfd_generic_final_link (bfd *abfd, struct bfd_link_info *info)
if (! generic_add_output_symbol (abfd, &outsymalloc, NULL))
return FALSE;
if (! generic_add_output_symbol (abfd, &outsymalloc, NULL))
return FALSE;
- if (
info->relocatable
)
+ if (
bfd_link_relocatable (info)
)
{
/* Allocate space for the output relocs for each section. */
for (o = abfd->sections; o != NULL; o = o->next)
{
/* Allocate space for the output relocs for each section. */
for (o = abfd->sections; o != NULL; o = o->next)
@@
-2210,7
+2210,7
@@
_bfd_generic_link_output_symbols (bfd *output_bfd,
break;
case discard_sec_merge:
output = TRUE;
break;
case discard_sec_merge:
output = TRUE;
- if (
info->relocatable
+ if (
bfd_link_relocatable (info)
|| ! (sym->section->flags & SEC_MERGE))
break;
/* FALLTHROUGH */
|| ! (sym->section->flags & SEC_MERGE))
break;
/* FALLTHROUGH */
@@
-2380,7
+2380,7
@@
_bfd_generic_reloc_link_order (bfd *abfd,
{
arelent *r;
{
arelent *r;
- if (!
info->relocatable
)
+ if (!
bfd_link_relocatable (info)
)
abort ();
if (sec->orelocation == NULL)
abort ();
abort ();
if (sec->orelocation == NULL)
abort ();
@@
-2611,7
+2611,7
@@
default_indirect_link_order (bfd *output_bfd,
BFD_ASSERT (input_section->output_offset == link_order->offset);
BFD_ASSERT (input_section->size == link_order->size);
BFD_ASSERT (input_section->output_offset == link_order->offset);
BFD_ASSERT (input_section->size == link_order->size);
- if (
info->relocatable
+ if (
bfd_link_relocatable (info)
&& input_section->reloc_count > 0
&& output_section->orelocation == NULL)
{
&& input_section->reloc_count > 0
&& output_section->orelocation == NULL)
{
@@
-2705,7
+2705,7
@@
default_indirect_link_order (bfd *output_bfd,
goto error_return;
new_contents = (bfd_get_relocated_section_contents
(output_bfd, info, link_order, contents,
goto error_return;
new_contents = (bfd_get_relocated_section_contents
(output_bfd, info, link_order, contents,
-
info->relocatable
,
+
bfd_link_relocatable (info)
,
_bfd_generic_link_get_symbols (input_bfd)));
if (!new_contents)
goto error_return;
_bfd_generic_link_get_symbols (input_bfd)));
if (!new_contents)
goto error_return;
This page took
0.024113 seconds
and
4
git commands to generate.