Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnu linker script #1576

Closed
zchrissirhcz opened this issue Oct 6, 2014 · 10 comments
Closed

gnu linker script #1576

zchrissirhcz opened this issue Oct 6, 2014 · 10 comments

Comments

@zchrissirhcz
Copy link

Hello, I think gnu's linker file, whose file name ends with .ld, should be supported though it is not commonly used. Could any one supply a color YAML file?

@pchaigno
Copy link
Contributor

pchaigno commented Oct 6, 2014

Thanks for reporting this issue.
Do you have some examples of these files?

@pchaigno
Copy link
Contributor

pchaigno commented Oct 6, 2014

Thanks. It seems to be used a lot on GitHub. We can probably add support for it.
What syntax is it using? Is it specific to GNU linker files?

@zchrissirhcz
Copy link
Author

Refer to "ld" command's manual (type "man ld" on Linux terminal):

ld accepts Linker Command Language files written in a superset of AT&T's Link Editor Command Language syntax, to provide explicit and total control over the linking process.

As far as I'm concerned, the "Linker Command Language files" usually has an filename extension ".ld", e.g. linker.ld, or kernel.ld

And I find this manual maybe useful:
Link editor command language

@pchaigno
Copy link
Contributor

pchaigno commented Oct 7, 2014

GitHub is using Pygments for the syntax highlighting. It doesn't seem to currently have a lexer for Linker files. If we add support for them on Linguist, the code will still not be highlighted.
If you want them to be highlighted, you will have to submit a PR to Pygments' repo.

@arfon
Copy link
Contributor

arfon commented Dec 4, 2014

Now we're using TextMate grammars it would be good to look for a grammar that might support gnu linker script.

@pchaigno
Copy link
Contributor

@zchrissirhcz Do you know a TextMate or Atom bundle or a Sublime Text package for GNU Linker files?

@arfon
Copy link
Contributor

arfon commented Feb 27, 2015

🎏 flagging this as stale

@arfon
Copy link
Contributor

arfon commented Mar 13, 2015

Please feel free to open another issue if this is still something you're interested in working on.

@arfon arfon closed this as completed Mar 13, 2015
@larsbrinkhoff
Copy link
Contributor

Implemented in #2330.

@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants