* elf64-alpha.c (elf64_alpha_create_got_section): Initialize
->got if the section already exists.
This commit is contained in:
parent
a38c9fe6f4
commit
61bcf37398
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-09-21 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* elf64-alpha.c (elf64_alpha_create_got_section): Initialize
|
||||||
|
->got if the section already exists.
|
||||||
|
|
||||||
2003-09-19 Nathan Sidwell <nathan@codesourcery.com>
|
2003-09-19 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* dwarf2.c (decode_line_info): Cope with an initially empty
|
* dwarf2.c (decode_line_info): Cope with an initially empty
|
||||||
|
|
|
@ -2467,8 +2467,13 @@ elf64_alpha_create_got_section(abfd, info)
|
||||||
{
|
{
|
||||||
asection *s;
|
asection *s;
|
||||||
|
|
||||||
if (bfd_get_section_by_name (abfd, ".got"))
|
if ((s = bfd_get_section_by_name (abfd, ".got")))
|
||||||
return TRUE;
|
{
|
||||||
|
/* Check for a non-linker created .got? */
|
||||||
|
if (alpha_elf_tdata (abfd)->got == NULL)
|
||||||
|
alpha_elf_tdata (abfd)->got = s;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
s = bfd_make_section (abfd, ".got");
|
s = bfd_make_section (abfd, ".got");
|
||||||
if (s == NULL
|
if (s == NULL
|
||||||
|
|
Loading…
Add table
Reference in a new issue