From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id 70832385843E; Tue, 21 Feb 2023 11:15:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70832385843E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Update the description of the bfd_fill_in_gnu_debuglink_section function X-Act-Checkin: binutils-gdb X-Git-Author: Nick Clifton X-Git-Refname: refs/heads/master X-Git-Oldrev: c375d69903bb3335c01766cad7a03f7721d144a7 X-Git-Newrev: 4c16e1ab6a6c696785f9915647f8fcef6bda5093 Message-Id: <20230221111557.70832385843E@sourceware.org> Date: Tue, 21 Feb 2023 11:15:57 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2023 11:15:57 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4c16e1ab6a6c= 696785f9915647f8fcef6bda5093 commit 4c16e1ab6a6c696785f9915647f8fcef6bda5093 Author: Nick Clifton Date: Tue Feb 21 11:15:52 2023 +0000 Update the description of the bfd_fill_in_gnu_debuglink_section function Diff: --- bfd/ChangeLog | 5 +++++ bfd/opncls.c | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 357b9b588e4..b8987211dd4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2023-02-21 Nick Clifton + + * opncls.c (bfd_fill_in_gnu_debuglink_section): Update + description. + 2023-02-17 Tom Tromey =20 * doc/doc.str (FUNCTION): Call func. diff --git a/bfd/opncls.c b/bfd/opncls.c index 4d0ca48ee78..5dacad9b7d4 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -1706,8 +1706,8 @@ SYNOPSIS DESCRIPTION Takes a @var{BFD} and containing a .gnu_debuglink section @var{SECT} and fills in the contents of the section to contain a link to the - specified @var{filename}. The filename should be relative to the - current directory. + specified @var{filename}. The filename should be absolute or + relative to the current directory. =20 <> is returned if all is ok. Otherwise <> is returned and bfd_error is set. @@ -1733,12 +1733,7 @@ bfd_fill_in_gnu_debuglink_section (bfd *abfd, return false; } =20 - /* Make sure that we can read the file. - XXX - Should we attempt to locate the debug info file using the same - algorithm as gdb ? At the moment, since we are creating the - .gnu_debuglink section, we insist upon the user providing us with a - correct-for-section-creation-time path, but this need not conform to - the gdb location algorithm. */ + /* Open the linked file so that we can compute a CRC. */ handle =3D _bfd_real_fopen (filename, FOPEN_RB); if (handle =3D=3D NULL) {