From Bugzilla Helper: User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/124 (KHTML, like Gecko) Safari/125 Description of problem: programs built with "diet gcc" don't run because the startup object file /usr/lib/dietlibc/lib-%{arch}/start.o is stripped by the brp-strip script during the RPM build. Version-Release number of selected component (if applicable): 0.24-3 How reproducible: Always Steps to Reproduce: 1. echo "int main () { return 0; }" > a.c 2. diet gcc a.c 3. ./a.out 4. nm /usr/lib/dietlibc/lib-%{arch}/start.o Actual Results: After step 2: /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 08048074 After step 3: Segmentation fault After step 4: no symbols Expected Results: 2. no warning from ld 3. ./a.out should run 4. U __vsyscall 00000000 T _start U environ U exit U main Additional info: This can be fixed in the spec file: %define __os_install_post /usr/lib/rpm/brp-compress (thereby disabling the scripts brp-strip and brp-strip-comment-note). The library itself, apart from start.o, will still be stripped. This is already performed by the Makefile.
Fixed in -4
Just tried this: [byte@potter byte]$ echo "int main () {return 0; }" >a.c [byte@potter byte]$ diet gcc a.c [byte@potter byte]$ ./a.out [byte@potter byte]$ nm /usr/lib/dietlibc/lib-i386/start.o U environ U exit U main 00000000 T _start U __vsyscall This in dietlibc-0.24-4, from fedora development tree.