This is the mail archive of the binutils@sourceware.org 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 ld/4909: request for more helpful "can't allocate in segment" error message


On Thu, Aug 09, 2007 at 12:11:19PM -0700, H.J. Lu wrote:
> 	PR ld/4909
> 	* elf.c (print_segment_map): New function.
> 	(assign_file_positions_for_load_sections): Call print_segment_map
> 	when a section can't be allocated in segment.

OK.  A few minor nits.

> +print_segment_map (struct elf_segment_map *m)

Make m const.

> +  fprintf (stderr, "%s: ", pt);

Don't print the space here.

> +  for (j = 0; j < m->count; j++)
> +    fprintf (stderr, "%s ", m->sections [j]->name);

Preceed %s with a space here instead.

-- 
Alan Modra
Australia Development Lab, IBM


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