LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 29115 - linkerscript does not support non-wildcard filename spec
Summary: linkerscript does not support non-wildcard filename spec
Status: RESOLVED FIXED
Alias: None
Product: lld
Classification: Unclassified
Component: ELF (show other bugs)
Version: unspecified
Hardware: PC FreeBSD
: P normal
Assignee: George Rimar
URL:
Keywords:
Depends on:
Blocks: 23214
  Show dependency tree
 
Reported: 2016-08-23 22:41 PDT by emaste
Modified: 2016-08-30 04:48 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emaste 2016-08-23 22:41:14 PDT
While trying to link FreeBSD/mips with lld I encountered an error:

line 12: unknown command start.o                                                
    start.o(.text*)                                                             
    ^                                                                           

The source linker script is here: https://svnweb.freebsd.org/base/head/sys/boot/mips/uboot/ldscript.mips?revision=296183&view=markup#l12

It appears that the filename spec in most of our (FreeBSD's) linker scripts includes a wildcard at the beginning (e.g. *crtbegin.o, *crtend?.o), while this one mips linker script is the one case that has an explicit, non-wildcard path.
Comment 1 George Rimar 2016-08-24 09:49:03 PDT
Fix: https://reviews.llvm.org/D23839
Comment 2 George Rimar 2016-08-30 04:48:09 PDT
r280069