bug-binutils
[Top][All Lists]
Advanced

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

Thin archive relative directory calculation


From: Andrew Baxter
Subject: Thin archive relative directory calculation
Date: Sun, 17 Apr 2011 02:42:26 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Lanikai/3.1.9

I'm getting some incorrect directories in my thin .a files when creating the library in a directory above the current one. For example, if I do "ar rT ../x.a x.o" from the directory y, the relative location of x.o as specified in x.a is "../x.o" and not "y/x.o". It doesn't seem to be a problem in the opposite direction -- "ar rT x.a y/x.o" generates the relative location as "y/x.o".

Actually, is this a bug? I couldn't find any examples of the thin archives being used googling after around for a while, so I'm not sure my usage is correct.

Also, when using the broken .a files, ar t, ld, nm, and objdump give not particularly useful error messages and produce no output. For instance, ar t produces: "ar: x.a: No such file or directory".

I'm using version 2.21.0.20110209. I have a zipped up test case, but it would probably take more time to extract it than to write your own. I'd be glad to send it if it would be useful.

Cheers,
Andrew Baxter



reply via email to

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