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]
Other format: [Raw text]

Re: PATCH: PR 797: Alignment in empty section changes the output layout


On Wed, May 04, 2005 at 09:48:17PM -0700, H. J. Lu wrote:
> On Thu, May 05, 2005 at 12:07:17PM +0930, Alan Modra wrote:
> > Can you please look at merging lang_mark_used_section and
> > strip_unused_output_sections into strip_excluded_output_sections?
> > 
> > I think it should be possible if you call lang_do_assignments before
> > bfd_gc_sections to ensure that linker script symbols defined inside
> > output sections are in the hash table.
> 
> I am not sure it will work since the order is quite important. I
> got many
> 
> /export/build/gnu/binutils-debug/build-i686-linux/ld/ld-new:
> tmpdir/ld1: Not enough room for program headers (allocated 2, need 4)
> /export/build/gnu/binutils-debug/build-i686-linux/ld/ld-new: final link
> failed: Bad value

Did you find that you needed to run lang_size_sections early as well?
If so, see emultempl/ppc64elf.em:ppc_before_allocation for what needs to
be undone.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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