diff options
author | Nick Clifton <nickc@redhat.com> | 2011-05-31 14:27:39 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-05-31 14:27:39 +0000 |
commit | 74ce8de7cab5dd5a4e098f226235256b976b5165 (patch) | |
tree | fc708d742b8bfd1fe46377bc7e4b7a7c123ed3cd /bfd/archive.c | |
parent | 3b2f07930444a96217805d28af12dc5edd65b20d (diff) | |
download | gdb-74ce8de7cab5dd5a4e098f226235256b976b5165.zip gdb-74ce8de7cab5dd5a4e098f226235256b976b5165.tar.gz gdb-74ce8de7cab5dd5a4e098f226235256b976b5165.tar.bz2 |
* archive.c (adjust_relative_path): Fix comment to prevent it
corrupting the auto-generated bfd.h.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index 14136a0..77f8829 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 <parent of current dir>/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 <parent of current dir>/foo/bar.o bar.o ../../lib.a <grandparent>/<parent>/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) { |