https://sourceware.org/bugzilla/show_bug.cgi?id=28929
--- Comment #1 from Luca Bacci <luca.bacci at outlook dot com> ---
Steps to reproduce:
Have a simple main.c as follows:
main.c
--------------------
#include <stdlib.h>
#include <stdio.h>
int main() {
printf ("Hi!\n");
return 0;
}
--------------------
Compile and then archive in lib.a
* gcc -c main.c
* gcc-ar csrDT lib.a main.o
The generated lib.a contains no object code at all. Note how the lib.a file
size is actually smaller than the size of main.o.
NOTE: Using the newer --thin command-line argument in gcc-ar makes no
difference
--
You are receiving this mail because:
You are on the CC list for the bug.