This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change in 'ar' behaviour


I tried the -P option to ar, but that only causes ar to add every

object


to the file whether the full path matches or not. Is this behaviour expected?


It seems a little unreasonable to me..

I think the behaviour is somewhat expected, but undesireable. '1/name.o' gets added to the archive as 'name.o'. 'ar -rP main.a 1/name.o' checks '1/name.o' against 'name.o', sees that they don't match, assumes it's a different object and adds it as 'name.o'. Without the path information in the archive to check against this is just the nature of -P. Is there anything that can actually be done about it?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]