PATCH: PR ld/3966: 32bit address wrap around doesn't work with 32bit host

Hans-Peter Nilsson hp@bitrange.com
Tue Feb 6 15:04:00 GMT 2007


On Wed, 7 Feb 2007, Alan Modra wrote:
> 	* ldlang.c (lang_size_sections_1): Don't warn on backwards dot
> 	move unless section size is non-zero.

> @@ -4463,8 +4463,11 @@ lang_size_sections_1
>  		 || (os->bfd_section->flags & SEC_THREAD_LOCAL) == 0)
>  		&& (os->bfd_section->flags & SEC_ALLOC) != 0
>  		&& (os->bfd_section->size != 0
> -		    || os->bfd_section->vma != os->bfd_section->lma
> -		    || r->last_os != NULL)
> +		    || (r->last_os == NULL
> +			&& os->bfd_section->vma != os->bfd_section->lma)
> +		    || (r->last_os != NULL
> +			&& dot >= (r->last_os->output_section_statement
> +				   .bfd_section->vma))

Forgot to compile and test?  Mismatching parentheses.
(My autotester blew up.)

brgds, H-P



More information about the Binutils mailing list