FileInfo

Languages

Overview

What is an LD file? An LD file is a script written in the GNU "linker command language." It contains one or more commands that are used to configure how input files storing static object code are to be compiled into a single executable program or library for the GNU operating system.

More Information You will most likely only encounter LD scripts if you are compiling code into a program or library output file in GNU. The files are utilized by ld , which is a GNU linker command-line tool used to combine input files into an output file. Linking is part of the compilation process when building source code files into an output executable file. The ld command is often used as the last part of the compilation process to build the final executable. While LD files may store multiple types of commands, they most often store the SECTIONS command, which specifies how the sections in multiple input files should be mapped to a single output file. This helps control the memory layout of the single output file. Only one SECTIONS command can be stored in an LD file but it may include multiple statements that can define an entry point, assign value to a symbol, or describe the placement of an output section and the input sections that go into it. LD files are saved in plain text. You can use various text editors, such as Microsoft Notepad, Apple TextEdit, and gedit to view and edit them. NOTE: The ld GNU linker is part of the GNU Binary Utilities (binutils).

Popularity3.7/5

10 votes

Quick AppUsed by
VerifiedVerified by FileInfo.com The FileInfo.com team has independently researched the Linker Script file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified. If you would like to suggest any additions or updates to this page, please let us know .

Document Icon

Breadcrumbs

DeveloperThe GNU Project
Popularity3.7 | 10 Votes

Previous / Next

In-Depth

.LD File Extension

Linker Script

DeveloperThe GNU Project
Popularity
3.7  |  10 Votes
 

What is an LD file?

An LD file is a script written in the GNU "linker command language." It contains one or more commands that are used to configure how input files storing static object code are to be compiled into a single executable program or library for the GNU operating system.

More Information

You will most likely only encounter LD scripts if you are compiling code into a program or library output file in GNU. The files are utilized by ld , which is a GNU linker command-line tool used to combine input files into an output file. Linking is part of the compilation process when building source code files into an output executable file. The ld command is often used as the last part of the compilation process to build the final executable.

While LD files may store multiple types of commands, they most often store the SECTIONS command, which specifies how the sections in multiple input files should be mapped to a single output file. This helps control the memory layout of the single output file. Only one SECTIONS command can be stored in an LD file but it may include multiple statements that can define an entry point, assign value to a symbol, or describe the placement of an output section and the input sections that go into it.

LD files are saved in plain text. You can use various text editors, such as Microsoft Notepad, Apple TextEdit, and gedit to view and edit them.

NOTE: The ld GNU linker is part of the GNU Binary Utilities (binutils).

Open over 400 file formats with File Viewer Plus . Free Download

Programs that open or reference LD files

Sort

Pricing

Program Name

Platform

Reset

X

Windows

Microsoft Notepad

Included with OS

Microsoft WordPad

Other text editor

Mac

Apple TextEdit

Included with OS

Bare Bones BBEdit

Free Trial

Other text editor

Linux

GNU Binutils

Free

Leafpad

Free

gedit

Free

KWrite

Free

Geany

Free

Other text editor

Category: Developer Files

Updated: June 2, 2020

FAQ

What is an LD file?
An LD file is a script written in the GNU "linker command language." It contains one or more commands that are used to configure how input files storing static object code are to be compiled into a single executable program or library for the GNU operating system.