[Bug binutils/31973] Wrong length in FDE dump in readelf

2024-07-12 Thread sevaa at sprynet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31973

--- Comment #1 from Vsevolod Alekseyev  ---
Same issue with -wF

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/31973] New: Wrong length in FDE dump in readelf

2024-07-12 Thread sevaa at sprynet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31973

Bug ID: 31973
   Summary: Wrong length in FDE dump in readelf
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: sevaa at sprynet dot com
  Target Milestone: ---

Created attachment 15617
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15617&action=edit
Sample binary

Run the following against the attached binary:

readelf -wf frames

The very first FDE header line goes:

 005a 0016 FDE cie=0016 pc=1474..1490

0x5a for length is wrong, the length of the first FDE record in debug_frames is
0x12, and 0x5a is the length of the associated CIE.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/31972] New: strip cause SIGKILL in macOS

2024-07-12 Thread lapla.cogito at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31972

Bug ID: 31972
   Summary: strip cause SIGKILL in macOS
   Product: binutils
   Version: 2.42
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: lapla.cogito at gmail dot com
  Target Milestone: ---

I would like to report a problem with using strip on macOS (M1 MAX, but I
believe this problem also occurs on x86_64).

I ran into this problem while writing code in Rust. Therefore, I will show you
a procedure that allows you to reproduce a similar event:


$ cargo new foo && cd foo
$ cargo run --release
```

This produces the following output:

```
   Compiling foo v0.1.0 (/path_to_binary)
Finished `release` profile [optimized] target(s) in 0.72s
 Running `target/release/foo`.
zsh: killed cargo run --release
```

Noting that simply `cargo build` runs fine, I thought strip might be the cause.
Then I realized that the output changes when I use build scripts in Rust:

```
$ cat << EOF > build.rs 
fn main() {
println!("cargo::rerun-if-changed=src/main.rs");
}
EOF
```

After creating build.rs, `cargo run --release` would result in the following
output:

```
error: failed to run custom build command for `foo v0.1.0 (/path_to_binary)`

Caused by:
  process didn't exit successfully: `/path_to_build_script/build-script-build`
(signal: 9, SIGKILL: kill)
```

Both cases (with and without build.rs) don't occur if the standard macOS binary
(/usr/bin/strip) is used as strip instead of binutils from Homebrew. For this
reason, I suspect that this is a bug in the binutils strip.

Moreover, from looking at the source code, it appears that the binutils strip
is not Mach-O Version 2 compliant, and I believe the two problems mentioned
above are most likely caused by this.

I see two main ways to deal with this problem:

- Reject Mach-O Version 2 when it is given
- Modify the strip to work correctly even if Mach-O Version 2 is given

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug admin/31881] binutils-gdb Git repository is flooded by automatic commits

2024-07-12 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31881

--- Comment #12 from Andreas Schwab  ---
That won't work with a snapshot.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug admin/31881] binutils-gdb Git repository is flooded by automatic commits

2024-07-12 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31881

--- Comment #11 from Nick Clifton  ---
Created attachment 15616
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15616&action=edit
Proposed patch

Sorry for dropping this.

I have uploaded a revised version of your patch which:

  1. Moves the configure.ac alterations into the bfd/configure.ac
  2. Adds support for running the configure script in a build directory
 that is separate from the source directory (which is encouraged for
 building the binutils).

I have tested the patch locally and it works for me, but I would like
you to have a look over it first, before I commit it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/31475] binutils: Support CREL relocation format

2024-07-12 Thread jremus at linux dot ibm.com
https://sourceware.org/bugzilla/show_bug.cgi?id=31475

Jens Remus  changed:

   What|Removed |Added

 CC||jremus at linux dot ibm.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.