can't find file to patch at input line 154 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From patchwork Sun Aug 15 00:23:38 2021 |Content-Type: text/plain; charset="utf-8" |MIME-Version: 1.0 |Content-Transfer-Encoding: 7bit |X-Patchwork-Submitter: "H.J. Lu" |X-Patchwork-Id: 44666 |Return-Path: |X-Original-To: patchwork@sourceware.org |Delivered-To: patchwork@sourceware.org |Received: from server2.sourceware.org (localhost [IPv6:::1]) | by sourceware.org (Postfix) with ESMTP id 3960E3892016 | for ; Sun, 15 Aug 2021 00:25:45 +0000 (GMT) |DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3960E3892016 |DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; | s=default; t=1628987145; | bh=Hq91ZGg7YKoVg4oGoIsIl5PU+ptVmnKe5Yuaue+7LN8=; | h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: | List-Help:List-Subscribe:From:Reply-To:Cc:From; | b=p8Aa9EeG/0IrolCDj/zZSugmEv19BQPx6nBZAeC8lZGhZ91qYhiWm40Fs3AaLGTZA | 2UzJxq4WAXS7Tnuhpm2c6PhZoyf6Kci7jufL/C6iTIpso7v1i2Z6vmnf1fRkng6+/m | 9CzVb0wTzH4Rx3kv9gFiXhqa/98ztnbWILEiyndo= |X-Original-To: libc-alpha@sourceware.org |Delivered-To: libc-alpha@sourceware.org |Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com | [IPv6:2607:f8b0:4864:20::634]) | by sourceware.org (Postfix) with ESMTPS id 9C4803858C39; | Sun, 15 Aug 2021 00:23:41 +0000 (GMT) |DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9C4803858C39 |Received: by mail-pl1-x634.google.com with SMTP id d17so16543455plr.12; | Sat, 14 Aug 2021 17:23:41 -0700 (PDT) |X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; | d=1e100.net; s=20161025; | h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version | :content-transfer-encoding; | bh=Hq91ZGg7YKoVg4oGoIsIl5PU+ptVmnKe5Yuaue+7LN8=; | b=WNY97HTNUBlO6EQOWfFQWSI/pKE4o/IFUo5oKziCG87ldNLPGgzIP7c3wnbY3oGkaZ | D1U41FhDtq9JT2WPvGq50My4coqcVoHW9eK0h4mNjBI/zyActBhUqWrltW4MD3qrfYHV | nT43bm3IIyKGDomPs/Ak4I3PmLR8gzGLABp0VWgFVhXNuYb6YeI6MB5rSS1RAM6GYkK+ | HX6vKbsH0S11VSyx9c/uNKVDC0CwrxVrBW90NJeUlc9CM2J4YcOqGh2PQF+lGowFRci/ | XlAOkDsVt2firFoP9mJEmm8ON4kuhDeS5a447/lLOFAgE9QB0uyCLQmMjW/zZNF6iV1n | /CKQ== |X-Gm-Message-State: AOAM530wFf+Y6DC795hIkXRM7GFV46Z7FyOo4SuzNqmSs2krHaXBrlqm | lxtlRDnVYHv53JdlpwmWskBKB7zg+sU= |X-Google-Smtp-Source: | ABdhPJxk3NmVKR+boVuG5VffiiNYrONyqAu+ir2uCppfIHWoOT+AKMzbo13JAibT3ctVL/H9mUPTsQ== |X-Received: by 2002:a17:90b:2304:: with SMTP id | mt4mr9465576pjb.180.1628987020465; | Sat, 14 Aug 2021 17:23:40 -0700 (PDT) |Received: from gnu-cfl-2.localdomain ([172.58.38.240]) | by smtp.gmail.com with ESMTPSA id fh19sm5702341pjb.27.2021.08.14.17.23.39 | (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); | Sat, 14 Aug 2021 17:23:40 -0700 (PDT) |Received: from gnu-cfl-2.. (localhost [IPv6:::1]) | by gnu-cfl-2.localdomain (Postfix) with ESMTP id EBEB5C007B; | Sat, 14 Aug 2021 17:23:38 -0700 (PDT) |To: binutils@sourceware.org |Subject: [PATCH] elf: Add -z [dt-debugsz|nodt-debugsz] to emit DT_DEBUGSZ |Date: Sat, 14 Aug 2021 17:23:38 -0700 |Message-Id: <20210815002338.2779683-1-hjl.tools@gmail.com> |X-Mailer: git-send-email 2.31.1 |MIME-Version: 1.0 |X-Spam-Status: No, score=-3033.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, | DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, | RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, | TXREP autolearn=ham autolearn_force=no version=3.4.4 |X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on | server2.sourceware.org |X-BeenThere: libc-alpha@sourceware.org |X-Mailman-Version: 2.1.29 |Precedence: list |List-Id: Libc-alpha mailing list |List-Unsubscribe: , | |List-Archive: |List-Post: |List-Help: |List-Subscribe: , | |X-Patchwork-Original-From: "H.J. Lu via Libc-alpha" | |From: "H.J. Lu" |Reply-To: "H.J. Lu" |Cc: libc-alpha@sourceware.org, gdb-patches@sourceware.org |Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |Sender: "Libc-alpha" | | |Add -z [dt-debugsz|nodt-debugsz] to emit a DT_DEBUGSZ dynamic tag so |that the dynamic linker can set its value to the size of the structure |of debugger interface, whose address is stored in the DT_DEBUG dynamic |tag, used by the dynamic linker. | |bfd/ | | PR gdb/11839 | * elf.c (_bfd_elf_print_private_bfd_data): Support DT_DEBUGSZ. | * elflink.c (bfd_elf_size_dynamic_sections): Add DT_DEBUGSZ for | -z dt-debugsz in executables. | |binutils/ | | PR gdb/11839 | * readelf.c (get_dynamic_type): Support DT_DEBUGSZ. | |include/ | | PR gdb/11839 | * bfdlink.h (bfd_link_info): Add emit_dt_debugsz. | * elf/common.h (DT_DEBUGSZ): New. | |ld/ | | PR gdb/11839 | * NEWS: Mention -z dt-debugsz and -z nodt-debugsz. | * configure.ac (--enable-dt-debugsz): New. Default to yes. | Define DEFAULT_EMIT_DT_DEBUGSZ. | * ld.texi: Document -z dt-debugsz and -z nodt-debugsz. | * ldmain.c (main): Initialize link_info.emit_dt_debugsz to | DEFAULT_EMIT_DT_DEBUGSZ. | * lexsup.c (elf_shlib_list_options): Add -z dt-debugsz and | -z nodt-debugsz. | * config.in: Regenerate | * configure: Likewise. | * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Handle | -z dt-debugsz and -z nodt-debugsz. | * testsuite/config/default.exp (LDFLAGS): Add "-z nodt-debugsz". | * testsuite/ld-elf/dt-debugsz-1.d: New test. | * testsuite/ld-elf/dt-debugsz-2.d: Likewise. |--- | bfd/elf.c | 1 + | bfd/elflink.c | 5 +++++ | binutils/readelf.c | 1 + | include/bfdlink.h | 3 +++ | include/elf/common.h | 1 + | ld/NEWS | 3 +++ | ld/config.in | 4 ++++ | ld/configure | 27 +++++++++++++++++++++++++-- | ld/configure.ac | 16 ++++++++++++++++ | ld/emultempl/elf.em | 4 ++++ | ld/ld.texi | 4 ++++ | ld/ldmain.c | 1 + | ld/lexsup.c | 4 ++++ | ld/testsuite/config/default.exp | 3 +++ | ld/testsuite/ld-elf/dt-debugsz-1.d | 9 +++++++++ | ld/testsuite/ld-elf/dt-debugsz-2.d | 10 ++++++++++ | 16 files changed, 94 insertions(+), 2 deletions(-) | create mode 100644 ld/testsuite/ld-elf/dt-debugsz-1.d | create mode 100644 ld/testsuite/ld-elf/dt-debugsz-2.d | |diff --git a/bfd/elf.c b/bfd/elf.c |index 380d64d699d..8e2ea1f2b36 100644 |--- a/bfd/elf.c |+++ b/bfd/elf.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 166 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/bfd/elflink.c b/bfd/elflink.c |index c9d5da2dab4..94be0a0e69a 100644 |--- a/bfd/elflink.c |+++ b/bfd/elflink.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 182 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/binutils/readelf.c b/binutils/readelf.c |index bedd3893b59..92e696c5f0e 100644 |--- a/binutils/readelf.c |+++ b/binutils/readelf.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 194 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/bfdlink.h b/include/bfdlink.h |index 566529ee644..3f8606b11ad 100644 |--- a/include/bfdlink.h |+++ b/include/bfdlink.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 208 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/elf/common.h b/include/elf/common.h |index 95ade894e98..f4f8467fe26 100644 |--- a/include/elf/common.h |+++ b/include/elf/common.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 220 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/NEWS b/ld/NEWS |index 6e0b56658d3..a8f4c026482 100644 |--- a/ld/NEWS |+++ b/ld/NEWS -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 233 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/config.in b/ld/config.in |index 26d55a00d47..d5b2a1f948d 100644 |--- a/ld/config.in |+++ b/ld/config.in -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 248 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/configure b/ld/configure |index 33b7de33d1d..d4440f97857 100755 |--- a/ld/configure |+++ b/ld/configure -------------------------- No file to patch. Skipping patch. 5 out of 5 hunks ignored can't find file to patch at input line 314 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/configure.ac b/ld/configure.ac |index 8ea97c43cd4..09ee28474d5 100644 |--- a/ld/configure.ac |+++ b/ld/configure.ac -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 341 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em |index bfaf8130a3e..2e5ef68dc13 100644 |--- a/ld/emultempl/elf.em |+++ b/ld/emultempl/elf.em -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 356 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/ld.texi b/ld/ld.texi |index 72b5c373ba1..0e02bcf72c0 100644 |--- a/ld/ld.texi |+++ b/ld/ld.texi -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 371 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/ldmain.c b/ld/ldmain.c |index 02029237e1a..900085f29c7 100644 |--- a/ld/ldmain.c |+++ b/ld/ldmain.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 383 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/lexsup.c b/ld/lexsup.c |index c128fe3a96b..5203c302c93 100644 |--- a/ld/lexsup.c |+++ b/ld/lexsup.c -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 405 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp |index 0795ea81bfb..d2f2c2460b0 100644 |--- a/ld/testsuite/config/default.exp |+++ b/ld/testsuite/config/default.exp -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patching file ld/testsuite/ld-elf/dt-debugsz-1.d patching file ld/testsuite/ld-elf/dt-debugsz-2.d