projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: visium: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-avr.c
diff --git
a/bfd/elf32-avr.c
b/bfd/elf32-avr.c
index e75ac9fc1dbb9d56b6b703d57b49af1cee7b1b19..f04cc94ff3456e0d97dcc2e3cbbcab3e5fa0c789 100644
(file)
--- a/
bfd/elf32-avr.c
+++ b/
bfd/elf32-avr.c
@@
-1465,7
+1465,7
@@
elf32_avr_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
name = bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name);
name = bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name);
- name =
(name == NULL) ? bfd_section_name (input_bfd,
sec) : name;
+ name =
name == NULL ? bfd_section_name (
sec) : name;
}
else
{
}
else
{
@@
-2354,8
+2354,7
@@
avr_property_record_compare (const void *ap, const void *bp)
return (a->offset - b->offset);
if (a->section != b->section)
return (a->offset - b->offset);
if (a->section != b->section)
- return (bfd_get_section_vma (a->section->owner, a->section)
- - bfd_get_section_vma (b->section->owner, b->section));
+ return bfd_section_vma (a->section) - bfd_section_vma (b->section);
return (a->type - b->type);
}
return (a->type - b->type);
}
@@
-3948,12
+3947,12
@@
internal_reloc_compare (const void *ap, const void *bp)
/* Return true if ADDRESS is within the vma range of SECTION from ABFD. */
static bfd_boolean
/* Return true if ADDRESS is within the vma range of SECTION from ABFD. */
static bfd_boolean
-avr_is_section_for_address (
bfd *abfd,
asection *section, bfd_vma address)
+avr_is_section_for_address (asection *section, bfd_vma address)
{
bfd_vma vma;
bfd_size_type size;
{
bfd_vma vma;
bfd_size_type size;
- vma = bfd_
get_section_vma (abfd,
section);
+ vma = bfd_
section_vma (
section);
if (address < vma)
return FALSE;
if (address < vma)
return FALSE;
@@
-3985,7
+3984,7
@@
struct avr_find_section_data
perform any checks, and just returns. */
static void
perform any checks, and just returns. */
static void
-avr_find_section_for_address (bfd *abfd,
+avr_find_section_for_address (bfd *abfd
ATTRIBUTE_UNUSED
,
asection *section, void *data)
{
struct avr_find_section_data *fs_data
asection *section, void *data)
{
struct avr_find_section_data *fs_data
@@
-3996,11
+3995,11
@@
avr_find_section_for_address (bfd *abfd,
return;
/* If this section isn't part of the addressable code content, skip it. */
return;
/* If this section isn't part of the addressable code content, skip it. */
- if ((bfd_
get_section_flags (abfd,
section) & SEC_ALLOC) == 0
- && (bfd_
get_section_flags (abfd,
section) & SEC_CODE) == 0)
+ if ((bfd_
section_flags (
section) & SEC_ALLOC) == 0
+ && (bfd_
section_flags (
section) & SEC_CODE) == 0)
return;
return;
- if (avr_is_section_for_address (
abfd,
section, fs_data->address))
+ if (avr_is_section_for_address (section, fs_data->address))
fs_data->section = section;
}
fs_data->section = section;
}
@@
-4023,7
+4022,7
@@
avr_elf32_load_records_from_section (bfd *abfd, asection *sec)
fs_data.section = NULL;
fs_data.section = NULL;
- size = bfd_
get_
section_size (sec);
+ size = bfd_section_size (sec);
contents = bfd_malloc (size);
bfd_get_section_contents (abfd, sec, contents, 0, size);
ptr = contents;
contents = bfd_malloc (size);
bfd_get_section_contents (abfd, sec, contents, 0, size);
ptr = contents;
@@
-4126,8
+4125,7
@@
avr_elf32_load_records_from_section (bfd *abfd, asection *sec)
{
/* Try to find section and offset from address. */
if (fs_data.section != NULL
{
/* Try to find section and offset from address. */
if (fs_data.section != NULL
- && !avr_is_section_for_address (abfd, fs_data.section,
- address))
+ && !avr_is_section_for_address (fs_data.section, address))
fs_data.section = NULL;
if (fs_data.section == NULL)
fs_data.section = NULL;
if (fs_data.section == NULL)
@@
-4145,7
+4143,7
@@
avr_elf32_load_records_from_section (bfd *abfd, asection *sec)
r_list->records [i].section = fs_data.section;
r_list->records [i].offset
r_list->records [i].section = fs_data.section;
r_list->records [i].offset
- = address - bfd_
get_section_vma (abfd,
fs_data.section);
+ = address - bfd_
section_vma (
fs_data.section);
}
r_list->records [i].type = *((bfd_byte *) ptr);
}
r_list->records [i].type = *((bfd_byte *) ptr);
This page took
0.025778 seconds
and
4
git commands to generate.