public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Re: Moving sections in an executible
@ 2001-02-14 21:59 HenrySimmons17
  2001-04-01  0:00 ` HenrySimmons17
  0 siblings, 1 reply; 6+ messages in thread
From: HenrySimmons17 @ 2001-02-14 21:59 UTC (permalink / raw)
  To: crossgcc; +Cc: ischis2

Thecustom linker script that -T use when the linker runs it tells you where 
it is located. Go there and you can read it.

Henry
HenrySimmons17@aol.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Moving sections in an executible
  2001-02-14 21:59 Moving sections in an executible HenrySimmons17
@ 2001-04-01  0:00 ` HenrySimmons17
  0 siblings, 0 replies; 6+ messages in thread
From: HenrySimmons17 @ 2001-04-01  0:00 UTC (permalink / raw)
  To: crossgcc; +Cc: ischis2

Thecustom linker script that -T use when the linker runs it tells you where 
it is located. Go there and you can read it.

Henry
HenrySimmons17@aol.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Moving sections in an executible
  2001-02-14 10:12 ` Aaron J. Grier
@ 2001-04-01  0:00   ` Aaron J. Grier
  0 siblings, 0 replies; 6+ messages in thread
From: Aaron J. Grier @ 2001-04-01  0:00 UTC (permalink / raw)
  To: CrossGCC

On Wed, Feb 14, 2001 at 10:07:55AM -0700, Stephen Smith wrote:

> 1)  Does the -T script modify or replace the default script built into
> the linker.

it replaces the default script

> 2)  If it replaces the default script,  is there a way to have ld
> print out the script that it would use by default so that I could
> modify that and then pass the modified script to ld via the -T switch

pass --verbose to the linker

-- 
  Aaron J. Grier   |    Frye Electronics, Tigard, OR   |   aaron@frye.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Moving sections in an executible
  2001-02-14  9:07 Stephen Smith
  2001-02-14 10:12 ` Aaron J. Grier
@ 2001-04-01  0:00 ` Stephen Smith
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Smith @ 2001-04-01  0:00 UTC (permalink / raw)
  To: CrossGCC

I am writing an embedded application using gcc-2.95.2-6 from cygnus and
binutils-2.10.1.  We found that the OS loader
needs to have the gcc vtables in the .text segment (where they used to be under 5 year
old versions of gcc/binutils).

I found out that I need to use the ld -T switch to pass in a custom linker script.
What I need to know are two
questions:

1)  Does the -T script modify or replace the default script built into the linker.

2)  If it replaces the default script,  is there a way to have ld print out the script
that it would use by default so
that I could modify that and then pass the modified script to ld via the -T switch

Thanks in advance.

sps




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Moving sections in an executible
  2001-02-14  9:07 Stephen Smith
@ 2001-02-14 10:12 ` Aaron J. Grier
  2001-04-01  0:00   ` Aaron J. Grier
  2001-04-01  0:00 ` Stephen Smith
  1 sibling, 1 reply; 6+ messages in thread
From: Aaron J. Grier @ 2001-02-14 10:12 UTC (permalink / raw)
  To: CrossGCC

On Wed, Feb 14, 2001 at 10:07:55AM -0700, Stephen Smith wrote:

> 1)  Does the -T script modify or replace the default script built into
> the linker.

it replaces the default script

> 2)  If it replaces the default script,  is there a way to have ld
> print out the script that it would use by default so that I could
> modify that and then pass the modified script to ld via the -T switch

pass --verbose to the linker

-- 
  Aaron J. Grier   |    Frye Electronics, Tigard, OR   |   aaron@frye.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Moving sections in an executible
@ 2001-02-14  9:07 Stephen Smith
  2001-02-14 10:12 ` Aaron J. Grier
  2001-04-01  0:00 ` Stephen Smith
  0 siblings, 2 replies; 6+ messages in thread
From: Stephen Smith @ 2001-02-14  9:07 UTC (permalink / raw)
  To: CrossGCC

I am writing an embedded application using gcc-2.95.2-6 from cygnus and
binutils-2.10.1.  We found that the OS loader
needs to have the gcc vtables in the .text segment (where they used to be under 5 year
old versions of gcc/binutils).

I found out that I need to use the ld -T switch to pass in a custom linker script.
What I need to know are two
questions:

1)  Does the -T script modify or replace the default script built into the linker.

2)  If it replaces the default script,  is there a way to have ld print out the script
that it would use by default so
that I could modify that and then pass the modified script to ld via the -T switch

Thanks in advance.

sps




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-14 21:59 Moving sections in an executible HenrySimmons17
2001-04-01  0:00 ` HenrySimmons17
  -- strict thread matches above, loose matches on Subject: below --
2001-02-14  9:07 Stephen Smith
2001-02-14 10:12 ` Aaron J. Grier
2001-04-01  0:00   ` Aaron J. Grier
2001-04-01  0:00 ` Stephen Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).