* fnmatch.h, fnmatch.c: New files.
authorIan Lance Taylor <ian@airs.com>
Mon, 29 Jul 1996 21:33:26 +0000 (21:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 29 Jul 1996 21:33:26 +0000 (21:33 +0000)
commit86bc0974cb9bb02efc4fe0bf9c0466c2f02f1143
tree1ff91efb81126755cd7ecf440debfe4ae68dab1d
parentf2bf454e0f1bc17d01f9c2f22fe2010ee2442f3c
* fnmatch.h, fnmatch.c: New files.
* ldlex.l: Remove unused definition of FILENAME.  Add definition
of WILDCHAR.  In SCRIPT mode, accept any sequence of WILDCHAR as a
NAME.
* ldgram.y (file_NAME_list): Accept '*' and '?' specially.
(input_section_spec): Accept '?' specially.
(statement): Change exp to mustbe_exp in length and FILL cases.
(section): Call ldlex_script before section statements, and call
ldlex_popstate after them.
* ldlang.c: Include "fnmatch.h".
(wildcardp): New static function.
(wild_section): Permit the section name to be a wildcard.
(wild_file): New static function, broken out of wild.
(wild): Call wild_file.  Permit the file name to be a wildcard.
(open_input_bfds): Don't call lookup_name for a wildcard pattern.
* Makefile.in: Rebuild dependencies.
  (CFILES): Add fnmatch.c.
(HFILES): Add fnmatch.h.
(OFILES): Add fnmatch.o.
* ld.texinfo: Document that file and section names can now be
wildcard patterns.

* ldlang.c (lang_place_orphans): Correct condition: place a common
section if not relocateable or if common definitions are forced.
ld/.Sanitize
ld/ChangeLog
ld/Makefile.in
ld/NEWS
ld/fnmatch.c [new file with mode: 0644]
ld/fnmatch.h [new file with mode: 0644]
ld/ld.texinfo
ld/ldgram.y
ld/ldlang.c
ld/ldlex.l