diff options
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/archive.c | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 22df737..2b029bb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2008-03-31 Cary Coutant <ccoutant@google.com> + + PR 6006 + * archive.c (_bfd_slurp_extended_name_table): Change + ARFMAG[0] to ARFMAG[1]. + (_bfd_construct_extended_name_table): Likewise. + 2008-03-31 Daniel Jacobowitz <dan@codesourcery.com> * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment. @@ -6,7 +13,7 @@ 2008-03-27 Cary Coutant <ccoutant@google.com> - Add support for thin archives. + Add support for thin archives. * archive.c (_bfd_find_nested_archive): New function. (get_extended_arelt_filename): Add origin parameter. (_bfd_generic_read_ar_hdr_mag): Deal with extended name diff --git a/bfd/archive.c b/bfd/archive.c index 5389f7a..9861ed9 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -1233,7 +1233,7 @@ _bfd_slurp_extended_name_table (bfd *abfd) char *limit = temp + namedata->parsed_size; for (; temp < limit; ++temp) { - if (*temp == ARFMAG[0]) + if (*temp == ARFMAG[1]) temp[temp > ext_names && temp[-1] == '/' ? -1 : 0] = '\0'; if (*temp == '\\') *temp = '/'; @@ -1564,11 +1564,11 @@ _bfd_construct_extended_name_table (bfd *abfd, { strcpy (strptr, normal); if (! trailing_slash) - strptr[thislen] = ARFMAG[0]; + strptr[thislen] = ARFMAG[1]; else { strptr[thislen] = '/'; - strptr[thislen + 1] = ARFMAG[0]; + strptr[thislen + 1] = ARFMAG[1]; } stroff = strptr - *tabloc; last_stroff = stroff; |