LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-10-2009, 03:07 AM   #1
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
Stuck on dynamic linker


Okay I am still new at linux and I figured to help me learn more about linux I figured I would attempt to build 1 my self.

So I am using the LFS BOOK and I have came to an area where I am confused.

http://www.linuxfromscratch.org/lfs/...technotes.html
Quote:
Also be aware of the name of the platform's dynamic linker, often referred to as the dynamic loader (not to be confused with the standard linker ld that is part of Binutils). The dynamic linker provided by Glibc finds and loads the shared libraries needed by a program, prepares the program to run, and then runs it. The name of the dynamic linker for a 32-bit Intel machine will be ld-linux.so.2. A sure-fire way to determine the name of the dynamic linker is to inspect a random binary from the host system by running: readelf -l <name of binary> | grep interpreter and noting the output. The authoritative reference covering all platforms is in the shlib-versions file in the root of the Glibc source tree.
I am using slackware 32bit and i'm not sure what kind of binary package to use or where it is on slackware for readelf -l <name of binary> | grep interpreter.

So what is the best file to put in?

Sorry to be a bug but I would like to learn on how to do this.
 
Old 10-11-2009, 12:06 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by jmc1987 View Post
Okay I am still new at linux and I figured to help me learn more about linux I figured I would attempt to build 1 my self.

So I am using the LFS BOOK and I have came to an area where I am confused.

http://www.linuxfromscratch.org/lfs/...technotes.html
I am using slackware 32bit and i'm not sure what kind of binary package to use or where it is on slackware for readelf -l <name of binary> | grep interpreter.

So what is the best file to put in?

Sorry to be a bug but I would like to learn on how to do this.
I think command should be
Code:
readelf -l <name of binary> | grep -i interpreter
Also keep in mind, that it will work ONLY for dynamically linked executable, for statically linked (like /sbin/ldconfig) you'll get no output
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broke dynamic linker! /lib/libc.so.6 symbol _dl_out_of_memory GLIBC defa0009 Linux - Software 4 03-20-2009 08:57 AM
how to choose dynamic linker for a.out file? surfer41 Programming 4 07-03-2008 02:32 PM
Linux dynamic linker thedevilsjester Programming 4 09-20-2005 07:11 PM
Stuck with NTFS and Dynamic disk chunkahoy Linux - General 6 01-18-2005 01:30 AM
can't load dynamic linker '/lib/ld.so qanopus Linux - General 4 01-06-2003 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration