public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* mips .bss lma broken
@ 2002-03-22  7:25 Catherine Moore
  2002-03-22  9:52 ` Richard Earnshaw
  2002-03-23  5:12 ` Alan Modra
  0 siblings, 2 replies; 10+ messages in thread
From: Catherine Moore @ 2002-03-22  7:25 UTC (permalink / raw)
  To: rearnsha; +Cc: binutils, hunt, clm

Richard,

This patch seems to have caused some trouble for some
mips platforms:

http://sources.redhat.com/ml/binutils/2001-10/msg00541.html

<date>  Richard Earnshaw (rearnsha@arm.com)

        * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
        p_paddr of the segment that contains it.

In particular, the lma for the bss section should be the same value as
the vma.  In this example, it is not, and gdb relies on a correct lma
for this particular port.

 8 .eh_frame     00000350  0001ad30  0001ad30  0000bd30  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  9 .jcr          00000004  0001b080  0001b080  0000c080  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 10 .sbss         00000010  0001b090  0001b090  0000c090  2**3
                  ALLOC
 11 .bss          000001d0  0001b0a0  0001b090  0000c090  2**4
                  ALLOC
 12 .reginfo      00000018  00000000  00000000  0000c090  2**2
                  CONTENTS, READONLY, LINK_ONCE_SAME_SIZE
 13 .mdebug       00027f04  00000000  00000000  0000c0a8  2**2
                  CONTENTS, READONLY, DEBUGGING

I'm not sure if any other targets have more than one section 
that has its type set to SHT_NOBITS.  In this case, the .sbss and
the .bss section have that type.  Maybe the lma calculation needs
to take that into account?

In any case, I don't understand the problem that you were trying
to fix with this patch.  If you would elaborate, then maybe we
could come up with a correct lma calculation for both cases.

This is the source code, used to generate the executable:

#include <stdio.h>
static int x[2];
static char astring[128];
int main ()
{
  int i;
  char *ptr;

  ptr = astring;
  for (i = ' '; i < 'Z'; i++)
    *ptr++ = i;
  *ptr = 0;

  printf ("astring=0x%llx\n", (long long)astring);
  printf ("astring=%s\n", astring);
}


Thanks,
Catherine


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

* Re: mips .bss lma broken
  2002-03-22  7:25 mips .bss lma broken Catherine Moore
@ 2002-03-22  9:52 ` Richard Earnshaw
  2002-03-23  5:12 ` Alan Modra
  1 sibling, 0 replies; 10+ messages in thread
From: Richard Earnshaw @ 2002-03-22  9:52 UTC (permalink / raw)
  To: Catherine Moore; +Cc: rearnsha, binutils, hunt, clm


clm@redhat.com said:
> This patch seems to have caused some trouble for some mips platforms:
> http://sources.redhat.com/ml/binutils/2001-10/msg00541.html
> <date>  Richard Earnshaw (rearnsha@arm.com)
>         * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based
> on the
>         p_paddr of the segment that contains it.

> In particular, the lma for the bss section should be the same value as
> the vma.  In this example, it is not, and gdb relies on a correct lma
> for this particular port. 


As I recall, the discussion that lead up to this patch was this one:

http://sources.redhat.com/ml/binutils/2001-10/msg00498.html

R.


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

* Re: mips .bss lma broken
  2002-03-22  7:25 mips .bss lma broken Catherine Moore
  2002-03-22  9:52 ` Richard Earnshaw
@ 2002-03-23  5:12 ` Alan Modra
  2002-03-23 11:05   ` Richard Earnshaw
  2002-03-25  6:52   ` Catherine Moore
  1 sibling, 2 replies; 10+ messages in thread
From: Alan Modra @ 2002-03-23  5:12 UTC (permalink / raw)
  To: Catherine Moore; +Cc: rearnsha, binutils, hunt, clm

On Fri, Mar 22, 2002 at 07:25:35AM -0800, Catherine Moore wrote:
> 
> In particular, the lma for the bss section should be the same value as
> the vma.  In this example, it is not, and gdb relies on a correct lma
> for this particular port.
> 
>  10 .sbss         00000010  0001b090  0001b090  0000c090  2**3
>                   ALLOC
>  11 .bss          000001d0  0001b0a0  0001b090  0000c090  2**4
>                   ALLOC

Yeah, calculating based on file offset doesn't make much sense for
sections that don't take up file space.  This should fix it.

	* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
	section file offset for !SEC_LOAD sections.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.131
diff -u -p -r1.131 elf.c
--- elf.c	2002/03/04 20:41:55	1.131
+++ elf.c	2002/03/23 12:59:10
@@ -655,9 +655,9 @@ _bfd_elf_make_section_from_shdr (abfd, h
 
 		 Note - we used to check the p_paddr field as well, and
 		 refuse to set the LMA if it was 0.  This is wrong
-		 though as a perfectly valid, initialised segment can
+		 though, as a perfectly valid initialised segment can
 		 have a p_paddr of zero.  Some architectures, eg ARM,
-	         place special significance one the address 0 and
+	         place special significance on the address 0 and
 	         executables need to be able to have a segment which
 	         covers this address.  */
 	      if (phdr->p_type == PT_LOAD
@@ -668,15 +668,18 @@ _bfd_elf_make_section_from_shdr (abfd, h
 		      || (phdr->p_offset + phdr->p_filesz
 			  >= hdr->sh_offset + hdr->sh_size)))
 		{
-		  /* We used to do a relative adjustment here, but
-		     that doesn't work if the segment is packed with
-		     code from multiple VMAs.  Instead we calculate
-		     the LMA absoultely, based on the LMA of the
-		     segment (it is assumed that the segment will
-		     contain sections with contiguous LMAs, even if
-		     the VMAs are not).  */
-		  newsect->lma = phdr->p_paddr
-		    + hdr->sh_offset - phdr->p_offset;
+		  if ((flags & SEC_LOAD) == 0)
+		    newsect->lma += phdr->p_paddr - phdr->p_vaddr;
+		  else
+		    /* We used to use the same adjustment for SEC_LOAD
+		       sections, but that doesn't work if the segment
+		       is packed with code from multiple VMAs.
+		       Instead we calculate the section LMA based on
+		       the segment LMA.  It is assumed that the
+		       segment will contain sections with contiguous
+		       LMAs, even if the VMAs are not.  */
+		    newsect->lma = (phdr->p_paddr
+				    + hdr->sh_offset - phdr->p_offset);
 		  break;
 		}
 	    }

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

* Re: mips .bss lma broken
  2002-03-23  5:12 ` Alan Modra
@ 2002-03-23 11:05   ` Richard Earnshaw
  2002-03-23 11:08     ` Daniel Jacobowitz
  2002-03-25  6:52   ` Catherine Moore
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Earnshaw @ 2002-03-23 11:05 UTC (permalink / raw)
  To: Alan Modra; +Cc: Catherine Moore, rearnsha, binutils, hunt, clm


amodra@bigpond.net.au said:
> Yeah, calculating based on file offset doesn't make much sense for
> sections that don't take up file space.  This should fix it.

> 	* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
> 	section file offset for !SEC_LOAD sections. 


Looks sensible to me.

R.

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

* Re: mips .bss lma broken
  2002-03-23 11:05   ` Richard Earnshaw
@ 2002-03-23 11:08     ` Daniel Jacobowitz
  2002-03-25  1:31       ` Alan Modra
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2002-03-23 11:08 UTC (permalink / raw)
  To: binutils

On Sat, Mar 23, 2002 at 07:04:53PM +0000, Richard Earnshaw wrote:
> 
> amodra@bigpond.net.au said:
> > Yeah, calculating based on file offset doesn't make much sense for
> > sections that don't take up file space.  This should fix it.
> 
> > 	* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
> > 	section file offset for !SEC_LOAD sections. 
> 
> 
> Looks sensible to me.

2.12 branch also, please.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: mips .bss lma broken
  2002-03-23 11:08     ` Daniel Jacobowitz
@ 2002-03-25  1:31       ` Alan Modra
  2002-03-28 21:01         ` Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Modra @ 2002-03-25  1:31 UTC (permalink / raw)
  To: binutils

On Sat, Mar 23, 2002 at 02:07:57PM -0500, Daniel Jacobowitz wrote:
> 
> 2.12 branch also, please.

OK.  Any objections to a few more?  I think these are all reasonably
safe, or have been sitting on mainline long enough.  There are others
that should probably go across too, various coff bits, mips, but I'd
rather leave them to the appropriate maintainers to judge suitability
for the branch.

bfd/ChangeLog
	Merge from mainline.
	2002-03-23  Alan Modra  <amodra@bigpond.net.au>
	* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
	section file offset for !SEC_LOAD sections.

	2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
	* dwarf2.c (struct funcinfo): Move up.
	(lookup_address_in_function_table): New argument function_ptr.
	Set it.
	(lookup_address_in_line_table): New argument function.  If function
	is non-NULL, use it to handle ``addr'' before the first line note of
	the function.
	(comp_unit_find_nearest_line): Update and swap calls to
	lookup_address_in_function_table and lookup_address_in_line_table.
	* syms.c (_bfd_stab_section_find_nearest_line): Use the first
	N_SLINE encountered if we see an N_FUN before any N_SLINE.

	2002-03-18  Alan Modra  <amodra@bigpond.net.au>
	* libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
	* libbfd.h: Regenerate.
	* archive.c (coff_write_armap): Pass on failures from
	bfd_write_bigendian_4byte_int.

	2002-03-14  H.J. Lu <hjl@gnu.org>
	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
	error to bfd_error_nonrepresentable_section for reinit_array
	section in DSO.

	2002-03-14  Nick Clifton  <nickc@cambridge.redhat.com>
	* coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
	OR it in rather than replacing previously selected flags.
	* elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
	(TARGET_LITTLE_SYM): Set ar_max_namelen to 15.

	2002-03-14  Alan Modra  <amodra@bigpond.net.au>
	* elflink.h (elf_bfd_final_link): Revert last change.  Instead,
	ensure reloc size matches before calling elf_link_input_bfd.
	Add an assert to check reloc size when counting output relocs.

	2002-03-14  Nick Clifton  <nickc@cambridge.redhat.com>
	* mmo.c (mmo_get_loc): Return NULL rather than false.

	2002-03-13  Alan Modra  <amodra@bigpond.net.au>
	* elflink.h: Formatting fixes.
	(elf_link_output_extsym): Merge undefined and undef weak cases.
	* elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
	when word size of input matches output word size.

	2002-03-07  H.J. Lu  (hjl@gnu.org)
	* coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
	as the type for bfd_reloc_val.

	2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
	* elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
	(elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
	(elf_hppa_final_link_relocate): Correct relocations for indirect
	references to local data through the DLT.  Fix .opd creation for
	local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
	relocations.  Use e_lsel selector for R_PARISC_DLTIND21L,
	R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
	"Processor-Specific ELF for PA_RISC, Version 1.43" document.
	Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
	* elf32-hppa.c (final_link_relocate): Revise relocation selectors
	as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.

	2002-03-05  Jakub Jelinek  <jakub@redhat.com>
	* merge.c (_bfd_merge_sections): Don't segfault if there
	is nothing to merge due to GC.

	2002-03-05  Alan Modra  <amodra@bigpond.net.au>
	* elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
	symbols that have been forced local.
	* elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
	to output forced local syms for non-shared link.
	(elf_link_output_extsym): Tweak condition for calling backend
	adjust_dynamic_symbol so that previous behaviour is kept.
	Whitespace changes throughout file.

	2002-03-04  H.J. Lu <hjl@gnu.org>
	* elf.c (bfd_section_from_shdr): Handle special sections,
	.init_array, .fini_array and .preinit_array.
	(elf_fake_sections): Likewise.
	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
	DT entry only if the section is in output for .init_array,
	.fini_array and .preinit_array. Complain about .preinit_array
	section in DSO.
	(elf_bfd_final_link): Warn zero size for .init_array,
	.fini_array and .preinit_array sections.
	* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
	SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
	(elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
	.preinit_array.

	2002-03-01  David Mosberger  <davidm@hpl.hp.com>
	* elflink.h (size_dynamic_sections): If section named
	".preinit_array" exists, create DT_PREINIT_ARRAY and
	DT_PREINIT_ARRAYSZ entries in dynamic table.  Analogously for
	".init_array" and ".fini_array".
	(elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
	DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
	DT_FINI_ARRAY.

	2002-02-19  Frank Ch. Eigler  <fche@redhat.com>
	* syms.c (stt[]): Sorted.  Added .init/.fini -> "t" mapping.

	2002-02-13  Nick Clifton  <nickc@cambridge.redhat.com>
	* elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
	non-zero physical addresses when adjusting the LMAs of new
	sections.

	2002-02-11  Michael Snyder  <msnyder@redhat.com>
	* elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
	* elf.c (elfcore_grok_pstatus): Add prototype.
	(elfcore_grok_lwpstatus): Add prototype.
	(elfcore_write_lwpstatus): New function.
	(elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.

opcodes/ChangeLog
	Merge from mainline.
	2002-03-23  matthew green  <mrg@redhat.com>
	* ppc-opc.c (vmaddfp): Fix operand order.

	2002-03-21  Anton Blanchard  <anton@samba.org>
	* ppc-opc.c: Add optional field to mtmsrd.
	(MTMSRD_L, XRLARB_MASK): Define.

	2002-03-13  Alan Modra  <amodra@bigpond.net.au>
	* ppc-opc.c: Add optional `L' field to tlbie.
	(XRTLRA_MASK): Define.

	2002-02-20  Tom Rix  <trix@redhat.com>
	* ppc-opc.c (powerpc_operands): Add WS feild.  Use for tlbre, tlbwe.

gas/ChangeLog
	Merge from mainline.
	2002-03-12  Andreas Schwab  <schwab@suse.de>
	* config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
	body record so that an error is given for misplaced .save
	pseudo-ops.

	2002-03-09  Alan Modra  <amodra@bigpond.net.au>
	* config/tc-i386.h (REX_OPCODE): Define.
	(REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
	(rex_byte): typedef to int.
	* config/tc-i386.c: Group prototypes and vars together.
	Formatting fixes.  Remove occurrences of "register" keyword.
	(true): Delete.
	(false): Delete.
	(mode_from_disp_size): Add INLINE keyword to prototype.
	(fits_in_signed_byte): Likewise.
	(fits_in_unsigned_byte): Likewise.
	(fits_in_unsigned_word): Likewise.
	(fits_in_signed_word): Likewise.
	(fits_in_unsigned_long): Likewise.
	(fits_in_signed_long): Likewise.
	(type_names): Constify.
	(intel_float_operand): Constify param.
	(add_prefix): Use REX_OPCODE.
	(md_assemble): Likewise.  Modify for changed rex_byte.
	(parse_insn): Split out of md_assemble.
	(parse_operands): Likewise.
	(swap_operands): Likewise.
	(optimize_imm): Likewise.
	(optimize_disp): Likewise.
	(match_template): Likewise.
	(check_string): Likewise.
	(process_suffix): Likewise.
	(check_byte_reg): Likewise.
	(check_long_reg): Likewise.
	(check_qword_reg): Likewise.
	(check_word_reg): Likewise.
	(finalize_imm): Likewise.
	(process_operands): Likewise.
	(build_modrm_byte): Likewise.
	(output_insn): Likewise.
	(output_branch): Likewise.
	(output_jump): Likewise.
	(output_interseg_jump): Likewise.
	(output_disp): Likewise.
	(output_imm): Likewise.

	2002-03-06  Alan Modra  <amodra@bigpond.net.au>
	* config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
	relocs except when BFD64.
	* write.c (number_to_chars_bigendian): Don't abort when N is
	larger than sizeof (VAL).
	(number_to_chars_littleendian): Likewise.

	2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
	* config/tc-hppa.c (md_apply_fix3): Add cast.
	(hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
	e_rrsel.

	2002-03-04  H.J. Lu <hjl@gnu.org>
	* config/obj-elf.c (special_section): Add .init_array,
	.fini_array and .preinit_array.
	* config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
	.init_array and .fini_array.

	2002-03-01  Jakub Jelinek  <jakub@redhat.com>
	* config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
	visibility.
	(obj_frob_symbol): Copy visibility.

ld/ChangeLog
	Merge from mainline.
	2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
	* genscripts.sh (LIB_SEARCH_DIRS): Quote path.

	2002-03-20  Alan Modra  <amodra@bigpond.net.au>
	* ldlang.c (ldlang_add_undef): If the output bfd has been opened,
	add the symbol to the linker hash table immediately.
	(lang_place_undefineds): Split symbol creation out..
	(insert_undefined): ..to here.

	2002-03-18  Alan Modra  <amodra@bigpond.net.au>
	* ldmain.c (main): Move .text readonly flag fudges from here..
	* ldlang.c (lang_process): ..to here.

	2002-03-14  Alan Modra  <amodra@bigpond.net.au>
	* ldlang.c (lang_check): Remove the word size check added in last
	change.  Treat emitrelocations case as for relocatable links.

	2002-03-13  Alan Modra  <amodra@bigpond.net.au>
	* ldlang.c (lang_check): Do relocatable link checks first, so that
	warn_mismatch can't override.  Check compatible and word size too.

	2002-03-04  H.J. Lu <hjl@gnu.org>
	* scripttempl/elf.sc: Put .preinit_array, .init_array and
	.fini_array in the data segment.

	2002-03-04  Alan Modra  <amodra@bigpond.net.au>
	* scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.

	2002-03-01  David Mosberger  <davidm@hpl.hp.com>
	* scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
	.init_array, and .fini_array.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

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

* Re: mips .bss lma broken
  2002-03-23  5:12 ` Alan Modra
  2002-03-23 11:05   ` Richard Earnshaw
@ 2002-03-25  6:52   ` Catherine Moore
  1 sibling, 0 replies; 10+ messages in thread
From: Catherine Moore @ 2002-03-25  6:52 UTC (permalink / raw)
  To: Alan Modra; +Cc: Catherine Moore, rearnsha, binutils, hunt

Thanks Alan,

This does fix the problem that I was seeing.

Catherine

: Yeah, calculating based on file offset doesn't make much sense for
: sections that don't take up file space.  This should fix it.
: 
: 	* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
: 	section file offset for !SEC_LOAD sections.
: 
: -- 
: Alan Modra
: IBM OzLabs - Linux Technology Centre

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

* Re: mips .bss lma broken
  2002-03-25  1:31       ` Alan Modra
@ 2002-03-28 21:01         ` Daniel Jacobowitz
  2002-04-02 16:02           ` Alan Modra
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2002-03-28 21:01 UTC (permalink / raw)
  To: binutils

On Mon, Mar 25, 2002 at 08:01:41PM +1030, Alan Modra wrote:
> On Sat, Mar 23, 2002 at 02:07:57PM -0500, Daniel Jacobowitz wrote:
> > 
> > 2.12 branch also, please.
> 
> OK.  Any objections to a few more?  I think these are all reasonably
> safe, or have been sitting on mainline long enough.  There are others
> that should probably go across too, various coff bits, mips, but I'd
> rather leave them to the appropriate maintainers to judge suitability
> for the branch.

(And I believe you checked in something else the day after you wrote
this that was a good branch candidate.  I don't remember what it was.)

This is a bit more than I would have moved over if I'd been going
through it myself, but I trust your judgement; go ahead.  Any
particular reason you left out:

2002-03-14  Alan Modra  <amodra@bigpond.net.au>

        * cpu-mips.c (mips_compatible): New.  Don't check bits_per_word.
        (N): Use the above.

?  You got the other half of that patch.

> bfd/ChangeLog
> 	Merge from mainline.
> 	2002-03-23  Alan Modra  <amodra@bigpond.net.au>
> 	* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
> 	section file offset for !SEC_LOAD sections.
> 
> 	2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
> 	* dwarf2.c (struct funcinfo): Move up.
> 	(lookup_address_in_function_table): New argument function_ptr.
> 	Set it.
> 	(lookup_address_in_line_table): New argument function.  If function
> 	is non-NULL, use it to handle ``addr'' before the first line note of
> 	the function.
> 	(comp_unit_find_nearest_line): Update and swap calls to
> 	lookup_address_in_function_table and lookup_address_in_line_table.
> 	* syms.c (_bfd_stab_section_find_nearest_line): Use the first
> 	N_SLINE encountered if we see an N_FUN before any N_SLINE.
> 
> 	2002-03-18  Alan Modra  <amodra@bigpond.net.au>
> 	* libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
> 	* libbfd.h: Regenerate.
> 	* archive.c (coff_write_armap): Pass on failures from
> 	bfd_write_bigendian_4byte_int.
> 
> 	2002-03-14  H.J. Lu <hjl@gnu.org>
> 	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
> 	error to bfd_error_nonrepresentable_section for reinit_array
> 	section in DSO.
> 
> 	2002-03-14  Nick Clifton  <nickc@cambridge.redhat.com>
> 	* coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
> 	OR it in rather than replacing previously selected flags.
> 	* elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
> 	(TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
> 
> 	2002-03-14  Alan Modra  <amodra@bigpond.net.au>
> 	* elflink.h (elf_bfd_final_link): Revert last change.  Instead,
> 	ensure reloc size matches before calling elf_link_input_bfd.
> 	Add an assert to check reloc size when counting output relocs.
> 
> 	2002-03-14  Nick Clifton  <nickc@cambridge.redhat.com>
> 	* mmo.c (mmo_get_loc): Return NULL rather than false.
> 
> 	2002-03-13  Alan Modra  <amodra@bigpond.net.au>
> 	* elflink.h: Formatting fixes.
> 	(elf_link_output_extsym): Merge undefined and undef weak cases.
> 	* elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
> 	when word size of input matches output word size.
> 
> 	2002-03-07  H.J. Lu  (hjl@gnu.org)
> 	* coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
> 	as the type for bfd_reloc_val.
> 
> 	2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
> 	* elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
> 	(elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
> 	(elf_hppa_final_link_relocate): Correct relocations for indirect
> 	references to local data through the DLT.  Fix .opd creation for
> 	local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
> 	relocations.  Use e_lsel selector for R_PARISC_DLTIND21L,
> 	R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
> 	"Processor-Specific ELF for PA_RISC, Version 1.43" document.
> 	Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
> 	* elf32-hppa.c (final_link_relocate): Revise relocation selectors
> 	as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
> 
> 	2002-03-05  Jakub Jelinek  <jakub@redhat.com>
> 	* merge.c (_bfd_merge_sections): Don't segfault if there
> 	is nothing to merge due to GC.
> 
> 	2002-03-05  Alan Modra  <amodra@bigpond.net.au>
> 	* elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
> 	symbols that have been forced local.
> 	* elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
> 	to output forced local syms for non-shared link.
> 	(elf_link_output_extsym): Tweak condition for calling backend
> 	adjust_dynamic_symbol so that previous behaviour is kept.
> 	Whitespace changes throughout file.
> 
> 	2002-03-04  H.J. Lu <hjl@gnu.org>
> 	* elf.c (bfd_section_from_shdr): Handle special sections,
> 	.init_array, .fini_array and .preinit_array.
> 	(elf_fake_sections): Likewise.
> 	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
> 	DT entry only if the section is in output for .init_array,
> 	.fini_array and .preinit_array. Complain about .preinit_array
> 	section in DSO.
> 	(elf_bfd_final_link): Warn zero size for .init_array,
> 	.fini_array and .preinit_array sections.
> 	* elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
> 	SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
> 	(elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
> 	.preinit_array.
> 
> 	2002-03-01  David Mosberger  <davidm@hpl.hp.com>
> 	* elflink.h (size_dynamic_sections): If section named
> 	".preinit_array" exists, create DT_PREINIT_ARRAY and
> 	DT_PREINIT_ARRAYSZ entries in dynamic table.  Analogously for
> 	".init_array" and ".fini_array".
> 	(elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
> 	DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
> 	DT_FINI_ARRAY.
> 
> 	2002-02-19  Frank Ch. Eigler  <fche@redhat.com>
> 	* syms.c (stt[]): Sorted.  Added .init/.fini -> "t" mapping.
> 
> 	2002-02-13  Nick Clifton  <nickc@cambridge.redhat.com>
> 	* elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
> 	non-zero physical addresses when adjusting the LMAs of new
> 	sections.
> 
> 	2002-02-11  Michael Snyder  <msnyder@redhat.com>
> 	* elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
> 	* elf.c (elfcore_grok_pstatus): Add prototype.
> 	(elfcore_grok_lwpstatus): Add prototype.
> 	(elfcore_write_lwpstatus): New function.
> 	(elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
> 
> opcodes/ChangeLog
> 	Merge from mainline.
> 	2002-03-23  matthew green  <mrg@redhat.com>
> 	* ppc-opc.c (vmaddfp): Fix operand order.
> 
> 	2002-03-21  Anton Blanchard  <anton@samba.org>
> 	* ppc-opc.c: Add optional field to mtmsrd.
> 	(MTMSRD_L, XRLARB_MASK): Define.
> 
> 	2002-03-13  Alan Modra  <amodra@bigpond.net.au>
> 	* ppc-opc.c: Add optional `L' field to tlbie.
> 	(XRTLRA_MASK): Define.
> 
> 	2002-02-20  Tom Rix  <trix@redhat.com>
> 	* ppc-opc.c (powerpc_operands): Add WS feild.  Use for tlbre, tlbwe.
> 
> gas/ChangeLog
> 	Merge from mainline.
> 	2002-03-12  Andreas Schwab  <schwab@suse.de>
> 	* config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
> 	body record so that an error is given for misplaced .save
> 	pseudo-ops.
> 
> 	2002-03-09  Alan Modra  <amodra@bigpond.net.au>
> 	* config/tc-i386.h (REX_OPCODE): Define.
> 	(REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
> 	(rex_byte): typedef to int.
> 	* config/tc-i386.c: Group prototypes and vars together.
> 	Formatting fixes.  Remove occurrences of "register" keyword.
> 	(true): Delete.
> 	(false): Delete.
> 	(mode_from_disp_size): Add INLINE keyword to prototype.
> 	(fits_in_signed_byte): Likewise.
> 	(fits_in_unsigned_byte): Likewise.
> 	(fits_in_unsigned_word): Likewise.
> 	(fits_in_signed_word): Likewise.
> 	(fits_in_unsigned_long): Likewise.
> 	(fits_in_signed_long): Likewise.
> 	(type_names): Constify.
> 	(intel_float_operand): Constify param.
> 	(add_prefix): Use REX_OPCODE.
> 	(md_assemble): Likewise.  Modify for changed rex_byte.
> 	(parse_insn): Split out of md_assemble.
> 	(parse_operands): Likewise.
> 	(swap_operands): Likewise.
> 	(optimize_imm): Likewise.
> 	(optimize_disp): Likewise.
> 	(match_template): Likewise.
> 	(check_string): Likewise.
> 	(process_suffix): Likewise.
> 	(check_byte_reg): Likewise.
> 	(check_long_reg): Likewise.
> 	(check_qword_reg): Likewise.
> 	(check_word_reg): Likewise.
> 	(finalize_imm): Likewise.
> 	(process_operands): Likewise.
> 	(build_modrm_byte): Likewise.
> 	(output_insn): Likewise.
> 	(output_branch): Likewise.
> 	(output_jump): Likewise.
> 	(output_interseg_jump): Likewise.
> 	(output_disp): Likewise.
> 	(output_imm): Likewise.
> 
> 	2002-03-06  Alan Modra  <amodra@bigpond.net.au>
> 	* config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
> 	relocs except when BFD64.
> 	* write.c (number_to_chars_bigendian): Don't abort when N is
> 	larger than sizeof (VAL).
> 	(number_to_chars_littleendian): Likewise.
> 
> 	2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
> 	* config/tc-hppa.c (md_apply_fix3): Add cast.
> 	(hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
> 	e_rrsel.
> 
> 	2002-03-04  H.J. Lu <hjl@gnu.org>
> 	* config/obj-elf.c (special_section): Add .init_array,
> 	.fini_array and .preinit_array.
> 	* config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
> 	.init_array and .fini_array.
> 
> 	2002-03-01  Jakub Jelinek  <jakub@redhat.com>
> 	* config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
> 	visibility.
> 	(obj_frob_symbol): Copy visibility.
> 
> ld/ChangeLog
> 	Merge from mainline.
> 	2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
> 	* genscripts.sh (LIB_SEARCH_DIRS): Quote path.
> 
> 	2002-03-20  Alan Modra  <amodra@bigpond.net.au>
> 	* ldlang.c (ldlang_add_undef): If the output bfd has been opened,
> 	add the symbol to the linker hash table immediately.
> 	(lang_place_undefineds): Split symbol creation out..
> 	(insert_undefined): ..to here.
> 
> 	2002-03-18  Alan Modra  <amodra@bigpond.net.au>
> 	* ldmain.c (main): Move .text readonly flag fudges from here..
> 	* ldlang.c (lang_process): ..to here.
> 
> 	2002-03-14  Alan Modra  <amodra@bigpond.net.au>
> 	* ldlang.c (lang_check): Remove the word size check added in last
> 	change.  Treat emitrelocations case as for relocatable links.
> 
> 	2002-03-13  Alan Modra  <amodra@bigpond.net.au>
> 	* ldlang.c (lang_check): Do relocatable link checks first, so that
> 	warn_mismatch can't override.  Check compatible and word size too.
> 
> 	2002-03-04  H.J. Lu <hjl@gnu.org>
> 	* scripttempl/elf.sc: Put .preinit_array, .init_array and
> 	.fini_array in the data segment.
> 
> 	2002-03-04  Alan Modra  <amodra@bigpond.net.au>
> 	* scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
> 
> 	2002-03-01  David Mosberger  <davidm@hpl.hp.com>
> 	* scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
> 	.init_array, and .fini_array.
> 
> -- 
> Alan Modra
> IBM OzLabs - Linux Technology Centre
> 

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: mips .bss lma broken
  2002-03-28 21:01         ` Daniel Jacobowitz
@ 2002-04-02 16:02           ` Alan Modra
  2002-04-02 16:48             ` Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Modra @ 2002-04-02 16:02 UTC (permalink / raw)
  To: binutils

On Fri, Mar 29, 2002 at 12:00:59AM -0500, Daniel Jacobowitz wrote:
> 
> ?  You got the other half of that patch.

An oversight.

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

* Re: mips .bss lma broken
  2002-04-02 16:02           ` Alan Modra
@ 2002-04-02 16:48             ` Daniel Jacobowitz
  0 siblings, 0 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2002-04-02 16:48 UTC (permalink / raw)
  To: binutils

On Wed, Apr 03, 2002 at 09:32:06AM +0930, Alan Modra wrote:
> On Fri, Mar 29, 2002 at 12:00:59AM -0500, Daniel Jacobowitz wrote:
> > 
> > ?  You got the other half of that patch.
> 
> An oversight.

Thanks for all the merge legwork, Alan.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

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

end of thread, other threads:[~2002-04-03  0:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-22  7:25 mips .bss lma broken Catherine Moore
2002-03-22  9:52 ` Richard Earnshaw
2002-03-23  5:12 ` Alan Modra
2002-03-23 11:05   ` Richard Earnshaw
2002-03-23 11:08     ` Daniel Jacobowitz
2002-03-25  1:31       ` Alan Modra
2002-03-28 21:01         ` Daniel Jacobowitz
2002-04-02 16:02           ` Alan Modra
2002-04-02 16:48             ` Daniel Jacobowitz
2002-03-25  6:52   ` Catherine Moore

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