https://sourceware.org/bugzilla/show_bug.cgi?id=34470
Bug ID: 34470
Summary: strip command is malfunctioning on macOS Tahoe 26.5.2
(Intel x86-64)
Product: binutils
Version: 2.47
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: yejianfei.victor at gmail dot com
Target Milestone: ---
binutils's strip makes the macOS's x86-64 executable crash.
platform: macOS Tahoe 26.5.2 (Intel x86-64)
Build `binutils-2.47.tar.bz2` and with this command:
```
CC=clang CXX=clang++ ./configure --disable-default-execstack --disable-nls
--disable-werror --enable-64-bit-bfd --enable-default-hash-style=gnu
--enable-deterministic-archives --enable-multilib --enable-new-dtags
--enable-plugins --enable-relro --enable-shared --enable-targets=all
--with-system-zlib --with-zstd
make
```
After building, I got the file
`~/Downloads/binutils/binutils-2.47/binutils/.libs/strip-new`.
Now I wrote a simple "Hello World" program `hello.c`, and built it with clang,
and ran it with `./hello`. Everything worked fine. Then I strip hello, and then
I ran it with `./hello`, and it crashed.
```
bash-3.2$ cat hello.c
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
bash-3.2$ clang hello.c -o hello -Wall
bash-3.2$ file hello
hello: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
bash-3.2$ ./hello
Hello World
bash-3.2$ ~/Downloads/binutils/binutils-2.47/binutils/.libs/strip-new hello
bash-3.2$ ./hello
Killed: 9
bash-3.2$
```
--
You are receiving this mail because:
You are on the CC list for the bug.