diff options
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 67b7ac7..0bded07 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -592,8 +592,8 @@ numeric_forward (const void *P_x, const void *P_y) if (x == NULL || y == NULL) bfd_fatal (bfd_get_filename (sort_bfd)); - xs = bfd_get_section (x); - ys = bfd_get_section (y); + xs = bfd_asymbol_section (x); + ys = bfd_asymbol_section (y); if (bfd_is_und_section (xs)) { @@ -645,8 +645,8 @@ size_forward1 (const void *P_x, const void *P_y) if (x == NULL || y == NULL) bfd_fatal (bfd_get_filename (sort_bfd)); - xs = bfd_get_section (x); - ys = bfd_get_section (y); + xs = bfd_asymbol_section (x); + ys = bfd_asymbol_section (y); if (bfd_is_und_section (xs)) abort (); @@ -774,7 +774,7 @@ sort_symbols_by_size (bfd *abfd, bfd_boolean is_dynamic, void *minisyms, else next = NULL; - sec = bfd_get_section (sym); + sec = bfd_asymbol_section (sym); /* Synthetic symbols don't have a full type set of data available, thus we can't rely on that information for the symbol size. Ditto for @@ -788,7 +788,7 @@ sort_symbols_by_size (bfd *abfd, bfd_boolean is_dynamic, void *minisyms, else { if (from + size < fromend - && sec == bfd_get_section (next)) + && sec == bfd_asymbol_section (next)) sz = valueof (next) - valueof (sym); else sz = (bfd_get_section_vma (abfd, sec) @@ -895,7 +895,7 @@ print_symbol (bfd * abfd, if ((sym->flags & (BSF_SECTION_SYM | BSF_SYNTHETIC)) == 0) version_string = bfd_get_symbol_version_string (abfd, sym, &hidden); - if (bfd_is_und_section (bfd_get_section (sym))) + if (bfd_is_und_section (bfd_asymbol_section (sym))) hidden = TRUE; if (version_string && *version_string != '\0') @@ -931,7 +931,7 @@ print_symbol (bfd * abfd, lineno_cache_bfd = abfd; } - if (bfd_is_und_section (bfd_get_section (sym))) + if (bfd_is_und_section (bfd_asymbol_section (sym))) { static asection **secs; static arelent ***relocs; @@ -1001,10 +1001,10 @@ print_symbol (bfd * abfd, } } } - else if (bfd_get_section (sym)->owner == abfd) + else if (bfd_asymbol_section (sym)->owner == abfd) { if ((bfd_find_line (abfd, syms, sym, &filename, &lineno) - || bfd_find_nearest_line (abfd, bfd_get_section (sym), + || bfd_find_nearest_line (abfd, bfd_asymbol_section (sym), syms, sym->value, &filename, &functionname, &lineno)) && filename != NULL |