This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cannot create shared library on sh-elf


Hi Alexandre,
 
: The point is that ld/emulparams/sh{,l}elf.sh do define MAXPAGESIZE as
: 128,

Ah - I did not realise this.

: and, by the time I debugged this, I ended up figuring it was this
: inconsistency that caused the problem.  I believe it had something to
: do with the lines such as:
: 
:   . = ALIGN(128) + (. & (128 - 1));
: 
: that are present in the sh{,l}elf ldscripts, and are incompatible with
: a corresponding rounding done somewhere in the linker.  But that was
: quite a long time ago, and I no longer recall the details :-(

All of the assigning sections to segments work is now down in elf.c by
the function copy_private_bfd_data(), in case you are interested.


Anyway now that I understand that you are making the two definitions
of maxpagesize agree, I approve the patch.

Cheers
	Nick

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]