From: Nick Clifton Date: Tue, 31 May 2011 14:27:39 +0000 (+0000) Subject: * archive.c (adjust_relative_path): Fix comment to prevent it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74ce8de7cab5dd5a4e098f226235256b976b5165;p=binutils-gdb.git * archive.c (adjust_relative_path): Fix comment to prevent it corrupting the auto-generated bfd.h. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5701e71fd4e..2591ab87569 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-05-31 Nick Clifton + + * archive.c (adjust_relative_path): Fix comment to prevent it + corrupting the auto-generated bfd.h. + 2011-05-31 Paul Brook * elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion diff --git a/bfd/archive.c b/bfd/archive.c index 14136a045e4..77f8829dc1f 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -1346,14 +1346,18 @@ normalize (bfd *abfd ATTRIBUTE_UNUSED, const char *file) bar.o foo/lib.a ../bar.o foo/bar.o baz/lib.a ../foo/bar.o bar.o ../lib.a /bar.o - ../bar.o ../lib.a bar.o - ../bar.o lib.a ../bar.o + ; ../bar.o ../lib.a bar.o + ; ../bar.o lib.a ../bar.o foo/bar.o ../lib.a /foo/bar.o bar.o ../../lib.a //bar.o bar.o foo/baz/lib.a ../../bar.o - Note - the returned string is in a static buffer. */ + Note - the semicolons above are there to prevent the BFD chew + utility from interpreting those lines as prototypes to put into + the autogenerated bfd.h header... + Note - the string is returned in a static buffer. */ + static const char * adjust_relative_path (const char * path, const char * ref_path) {