public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/100383] New: cfi sections directive detection fails with binutils 2.36
@ 2021-05-02 14:57 ssbssa at yahoo dot de
  2021-05-03  8:07 ` [Bug debug/100383] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ssbssa at yahoo dot de @ 2021-05-02 14:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100383

            Bug ID: 100383
           Summary: cfi sections directive detection fails with binutils
                    2.36
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ssbssa at yahoo dot de
  Target Milestone: ---

Since binutils 2.36 [1], the objdump output [2] of the cfi sections directive
detection command (objdump -j .debug_frame -r conftest.o) changed from:

    conftest.o:     file format pe-x86-64

    RELOCATION RECORDS FOR [.debug_frame]:
    OFFSET           TYPE              VALUE
    000000000000001c secrel32          .debug_frame
    0000000000000020 R_X86_64_64       .text

to:

    conftest.o:     file format pe-x86-64

    RELOCATION RECORDS FOR [.debug_frame]:
    OFFSET           TYPE              VALUE
    000000000000001c IMAGE_REL_AMD64_SECREL  .debug_frame
    0000000000000020 IMAGE_REL_AMD64_ADDR64  .text

So because it's now uppercase SECREL, the `grep secrel` fails.

I haven't finished my build yet, but it should work like this:

    --- a/gcc/configure.ac
    +++ b/gcc/configure.ac
    @@ -3115,7 +3115,7 @@ gcc_GAS_CHECK_FEATURE([cfi sections directive],
         gcc_cv_as_cfi_sections_directive=no
         if test "x$gcc_cv_objdump" != x; then
          if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
    -       grep secrel > /dev/null; then
    +       grep -i secrel > /dev/null; then
           gcc_cv_as_cfi_sections_directive=yes
          fi
         fi



[1]
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ec6653d824fef41298fdb384ba74bcbc7be0dc22
[2]
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/configure.ac;h=84dceb8074ab4615316e09f1f339ed93eca6d6e9;hb=refs/heads/releases/gcc-10#l3117

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debug/100383] cfi sections directive detection fails with binutils 2.36
  2021-05-02 14:57 [Bug debug/100383] New: cfi sections directive detection fails with binutils 2.36 ssbssa at yahoo dot de
@ 2021-05-03  8:07 ` rguenth at gcc dot gnu.org
  2021-05-03  8:20 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-03  8:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100383

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |10.3.0
                 CC|                            |jakub at gcc dot gnu.org
           Keywords|                            |build
      Known to fail|                            |7.5.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
looks like all branches would be affected.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debug/100383] cfi sections directive detection fails with binutils 2.36
  2021-05-02 14:57 [Bug debug/100383] New: cfi sections directive detection fails with binutils 2.36 ssbssa at yahoo dot de
  2021-05-03  8:07 ` [Bug debug/100383] " rguenth at gcc dot gnu.org
@ 2021-05-03  8:20 ` jakub at gcc dot gnu.org
  2021-05-03 12:29 ` jyong at gcc dot gnu.org
  2022-12-27 16:02 ` 10walls at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-03  8:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100383

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jyong at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yes.
win32 | pe | cygwin* | mingw32* specific.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debug/100383] cfi sections directive detection fails with binutils 2.36
  2021-05-02 14:57 [Bug debug/100383] New: cfi sections directive detection fails with binutils 2.36 ssbssa at yahoo dot de
  2021-05-03  8:07 ` [Bug debug/100383] " rguenth at gcc dot gnu.org
  2021-05-03  8:20 ` jakub at gcc dot gnu.org
@ 2021-05-03 12:29 ` jyong at gcc dot gnu.org
  2022-12-27 16:02 ` 10walls at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jyong at gcc dot gnu.org @ 2021-05-03 12:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100383

jyong at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-05-03
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #3 from jyong at gcc dot gnu.org ---
I can confirm it was detected as no with binutils 2.36, and back to yes after
the grep change.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debug/100383] cfi sections directive detection fails with binutils 2.36
  2021-05-02 14:57 [Bug debug/100383] New: cfi sections directive detection fails with binutils 2.36 ssbssa at yahoo dot de
                   ` (2 preceding siblings ...)
  2021-05-03 12:29 ` jyong at gcc dot gnu.org
@ 2022-12-27 16:02 ` 10walls at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: 10walls at gmail dot com @ 2022-12-27 16:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100383

jon_y <10walls at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |10walls at gmail dot com

--- Comment #4 from jon_y <10walls at gmail dot com> ---
Pushed to git master.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-27 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-02 14:57 [Bug debug/100383] New: cfi sections directive detection fails with binutils 2.36 ssbssa at yahoo dot de
2021-05-03  8:07 ` [Bug debug/100383] " rguenth at gcc dot gnu.org
2021-05-03  8:20 ` jakub at gcc dot gnu.org
2021-05-03 12:29 ` jyong at gcc dot gnu.org
2022-12-27 16:02 ` 10walls at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).