bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28929] binutils 2.38 ar: issue when updating thin static l


From: luca.bacci at outlook dot com
Subject: [Bug binutils/28929] binutils 2.38 ar: issue when updating thin static libraries (malformed archive)
Date: Tue, 01 Mar 2022 10:41:45 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]