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) |