[PATCH] PE direct linking to dlls, accept any filename.
Pedro Alves
pedro_alves@portugalmail.pt
Mon Dec 18 11:47:00 GMT 2006
Danny Smith wrote:
> Could you add a test for symlinks (on cygwin), eg where libfoo.a is a
> symlink to $PATH/foo.dll.
> This is what
> if (REALPATH (entry->filename, fbuf) == NULL)
> strncpy (fbuf, entry->filename, sizeof (fbuf));
> is about I think.
>
You're right. Then, the REALPATH call isn't needed anymore.
It was there so we could get the filename extension of the dll
in the case you mention.
I've added tests for symlinks. Should I guard them for MinGW? How?
The symlink functionality comes from the host not from the target.
Using msys or 'gcc -mno-cygwin' should work, no?
Attached is the new patch, tested on i686-pc-cygwin. I'll try
testing on MinGW later.
Cheers,
Pedro Alves
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: direct3.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20061218/e44421f0/attachment.ksh>
More information about the Binutils
mailing list