https://sourceware.org/bugzilla/show_bug.cgi?id=24281
Bug ID: 24281 Summary: Failed with “thin archive” if it contain subdir's object file 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: --- Please use following shell commands to reproduce the problem: ``` # create subdirectory mkdir subdir # create source files with dummy functions echo 'void func1(){}' > file1.c echo 'void func2(){}' > ./subdir/file2.c # compiling sources into object files gcc -c file1.c -o file1.o gcc -c ./subdir/file2.c -o ./subdir/file2.o # creating "thin archive" file from object files ar crT out.a file1.o ./subdir/file2.o # running objcopy, which leads to an error objcopy out.a out_copy.a ``` As a result, following error occurs: ``` objcopy:st0AENRL/subdir/file2.o: No such file or directory ``` Problem with objcopy occurs when "thin" archive is composed of object files from subdirectories. P.S. Problem was also described on StackOverflow: https://stackoverflow.com/questions/54907402/problem-while-using-objcopy-with-thin-archive-file -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils