public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Linker question
@ 2003-06-13 15:38 Sumesh UdayaKumaran
  2003-06-17  8:22 ` Nick Clifton
  0 siblings, 1 reply; 7+ messages in thread
From: Sumesh UdayaKumaran @ 2003-06-13 15:38 UTC (permalink / raw)
  To: binutils

Hi
   As part of a project Iam involved in, I need to maintain copies of the 
same variable in different memory banks (kind of like cache). I then want to 
based on criteria I have address the different copies at different program 
points.

             Eg            ldw r3,A ....................Address the copy of 
global variable A in bank1.

                             ..................

                            ................
                           ldw r4, A            Address the copy of global 
variable A in bank2



Iam implementing this on a gcc cross compiler for mcore-elf.

From what I have figured so far (Iam really new to this whole world of 
linking and assembling ), I can handle this at the stage when the exact 
addresses are being generated.

The questions I had were:
1. Where is the exact address being generated.
2. As an alternative , can I handle such a scheme through a script, in other 
words can the script be used to guide such an addressing.


Any pointers, suggestions will be great


thanks
sumesh

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Linker question
@ 2005-07-22 13:27 Michael Trimarchi
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Trimarchi @ 2005-07-22 13:27 UTC (permalink / raw)
  To: binutils

Hi all,
I have a software project. The first one is compiled with the arm 2.95.2 
arm cross toolchain and the second one is width the arm 3.3.3 . I have a 
lot of char array and each one in different object file. If I compile 
and link width the first toolchain the char arrays are 4 byte aligh 
maybe because they are in different object file but if I compile and 
link width the second one I have a lot of these not align at 4byte. I 
fix this behavior with the align directive at source code level and I 
build another toolchain forcing the data align at 32 bit. The ld version 
is 2.15 for the gcc 3.3.3 .... Any of us know what is changed?

Regards Michael


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Linker question
@ 2008-10-02  9:00 palparni
  2008-10-02 12:56 ` Ramana Radhakrishnan
  2008-10-02 15:30 ` Nick Clifton
  0 siblings, 2 replies; 7+ messages in thread
From: palparni @ 2008-10-02  9:00 UTC (permalink / raw)
  To: binutils


Hi,

I'm not sure if this info is already present on the mailing list.
I'd like to know if it is possible to determine at the linking phase whether
a function has been referred to through function pointer.
If it is, could you give me some ideas on how to do this. I'd need to use
this in the emulation file of a microcontroller.

Thanks,
Alpar
-- 
View this message in context: http://www.nabble.com/Linker-question-tp19775703p19775703.html
Sent from the Sourceware - binutils list mailing list archive at Nabble.com.

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

end of thread, other threads:[~2008-10-03  6:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-13 15:38 Linker question Sumesh UdayaKumaran
2003-06-17  8:22 ` Nick Clifton
2005-07-22 13:27 Michael Trimarchi
2008-10-02  9:00 palparni
2008-10-02 12:56 ` Ramana Radhakrishnan
2008-10-03  6:55   ` palparni
2008-10-02 15:30 ` Nick Clifton

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).