[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/25104] New: Missing object file in resulting thin archive
From: |
qwertytmp1 at gmail dot com |
Subject: |
[Bug binutils/25104] New: Missing object file in resulting thin archive |
Date: |
Tue, 15 Oct 2019 07:34:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25104
Bug ID: 25104
Summary: Missing object file in resulting thin archive
Product: binutils
Version: 2.26
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: qwertytmp1 at gmail dot com
Target Milestone: ---
Problem occurs when creating thin archive from the file (file0.o) and from
another thin archive, which contains file with the same filename
(subfolder/file0.o).<br/>
I found this behavior of ar utility at list as strange.<br/>
It is possible to reproduce this problem using following list of commands:
```
mkdir reproducing_ar_bug
cd reproducing_ar_bug
touch file0.o
mkdir subfolder
cd subfolder
touch file0.o
touch file1.o
ar rcST built-in.o file0.o file1.o
cd ..
ar rcST built-in.o subfolder/built-in.o file0.o
```
In this case final built-in.o doesn't contain subfolder/file0.o:
```
!<thin>
// 28 `
file0.o/
subfolder/file1.o/
...
```
But if change final ar command from:
```
ar rcST built-in.o subfolder/built-in.o file0.o
```
to
```
ar rcST built-in.o file0.o subfolder/built-in.o
```
Result is correct:
```
!<thin>
// 48 `
file0.o/
subfolder/file0.o/
subfolder/file1.o/
```
P.S. List of commands with correct behavior:
```
mkdir reproducing_ar_bug
cd reproducing_ar_bug
touch file0.o
mkdir subfolder
cd subfolder
touch file0.o
touch file1.o
ar rcST built-in.o file0.o file1.o
cd ..
ar rcST built-in.o file0.o subfolder/built-in.o
```
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/25104] New: Missing object file in resulting thin archive,
qwertytmp1 at gmail dot com <=
- [Bug binutils/25104] Missing object file in resulting thin archive, qwertytmp1 at gmail dot com, 2019/10/15
- [Bug binutils/25104] Missing object file in resulting thin archive, amodra at gmail dot com, 2019/10/17
- [Bug binutils/25104] Missing object file in resulting thin archive, qwertytmp1 at gmail dot com, 2019/10/17
- [Bug binutils/25104] Wrong operation when creating thin archive, qwertytmp1 at gmail dot com, 2019/10/18
- [Bug binutils/25104] Wrong operation when creating thin archive, cvs-commit at gcc dot gnu.org, 2019/10/21
- [Bug binutils/25104] Wrong operation when creating thin archive, amodra at gmail dot com, 2019/10/21
- [Bug binutils/25104] Wrong operation when creating thin archive, qwertytmp1 at gmail dot com, 2019/10/21
- [Bug binutils/25104] Wrong operation when creating thin archive, amodra at gmail dot com, 2019/10/21
- [Bug binutils/25104] Wrong operation when creating thin archive, qwertytmp1 at gmail dot com, 2019/10/21