questions regarding m68k/ColdFire dynamic/shared code

Andreas Schwab schwab@suse.de
Wed Jan 15 22:12:00 GMT 2003


Peter Barada <pbarada@mail.wm.sps.mot.com> writes:

|> >|> is turned into:
|> >|> 
|> >|>     lea _GLOBAL_OFFSET_TABLE_@GOTPC, %a5
|> >
|> >You can't use @GOTPC without a pc-relative addressing mode.  You would
|> >need @GOTOFF, but that does not exist for m68k.
|> 
|> The two instructions:
|> 
|>     lea _GLOBAL_OFFSET_TABLE_@GOTPC, %a5
|>     lea -6(%pc,%a5), %a5
|> 
|> is equivalent to:
|> 
|>     lea _GLOBAL_OFFSET_TABLE_OFFSET_@GOTPC(%pc),%a5

You're right.  But your dl_start_user does not contain anything like this.

|> But again, back to my question, is ld.so supposed to modify its own
|> .text segment? 

No, never.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list