Lines 796-802
Link Here
|
796 |
/* Look through the phdrs to see if we need to adjust the lma. |
796 |
/* Look through the phdrs to see if we need to adjust the lma. |
797 |
If all the p_paddr fields are zero, we ignore them, since |
797 |
If all the p_paddr fields are zero, we ignore them, since |
798 |
some ELF linkers produce such output. */ |
798 |
some ELF linkers produce such output. */ |
799 |
phdr = elf_tdata (abfd)->phdr; |
799 |
if ((phdr = elf_tdata (abfd)->phdr) == NULL) |
|
|
800 |
return FALSE; |
800 |
for (i = 0; i < elf_elfheader (abfd)->e_phnum; i++, phdr++) |
801 |
for (i = 0; i < elf_elfheader (abfd)->e_phnum; i++, phdr++) |
801 |
{ |
802 |
{ |
802 |
if (phdr->p_paddr != 0) |
803 |
if (phdr->p_paddr != 0) |
Lines 1724-1729
Link Here
|
1724 |
const struct elf_backend_data *bed = get_elf_backend_data (abfd); |
1725 |
const struct elf_backend_data *bed = get_elf_backend_data (abfd); |
1725 |
const char *name; |
1726 |
const char *name; |
1726 |
|
1727 |
|
|
|
1728 |
if (hdr == NULL) |
1729 |
return FALSE; |
1730 |
|
1727 |
name = elf_string_from_elf_strtab (abfd, hdr->sh_name); |
1731 |
name = elf_string_from_elf_strtab (abfd, hdr->sh_name); |
1728 |
|
1732 |
|
1729 |
switch (hdr->sh_type) |
1733 |
switch (hdr->sh_type) |
Lines 1744-1749
Link Here
|
1744 |
case SHT_DYNAMIC: /* Dynamic linking information. */ |
1748 |
case SHT_DYNAMIC: /* Dynamic linking information. */ |
1745 |
if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name)) |
1749 |
if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name)) |
1746 |
return FALSE; |
1750 |
return FALSE; |
|
|
1751 |
if (hdr->sh_link > elf_numsections (abfd) || |
1752 |
elf_elfsections (abfd)[hdr->sh_link] == NULL) |
1753 |
return FALSE; |
1747 |
if (elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_STRTAB) |
1754 |
if (elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_STRTAB) |
1748 |
{ |
1755 |
{ |
1749 |
Elf_Internal_Shdr *dynsymhdr; |
1756 |
Elf_Internal_Shdr *dynsymhdr; |