public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH][GOLD] Avoid linker crashing when merge sections have    uneven sizes.
       [not found]   ` <o2x498552561004081702h7f92adb9j25ad2faaa652a821@mail.gmail.com>
@ 2010-04-09  0:48     ` David Daney
  0 siblings, 0 replies; only message in thread
From: David Daney @ 2010-04-09  0:48 UTC (permalink / raw)
  To: "Doug Kwan (關振德)"
  Cc: Ian Lance Taylor, binutils, Java List

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=Big5, Size: 1203 bytes --]

On 04/08/2010 05:02 PM, Doug Kwan (Ãö®¶¼w) wrote:
> Yes, it looks fishy but I did not dig into the gcc sources.  The
> sections are .rodata sections for UTF8 strings for various sizes.  It
> looks like the entries are aligned to 32-bit boundaries, not to the
> entsize of a section.
> 

FWIW:  http://gcc.gnu.org/ml/java-patches/2009-q1/msg00044.html

David Daney

> -Doug
> 
> 2010/4/8 Ian Lance Taylor<iant@google.com>:
>> "Doug Kwan (Ãö®¶¼w)"<dougkwan@google.com>  writes:
>>
>>>      This patch fixes a problem exposed by bootstrapping gcc.  libjava
>>> contains objects with unevenly sized merge sections, whose sections
>>> sizes are not multiples of their entsizes.
>>
>> That sounds like a bug somewhere.
>>
>>
>>> 2010-04-08  Doug Kwan<dougkwan@google.com>
>>>
>>>          * merge.cc (Output_merge_data::set_final_data_size): Handle empty
>>>          Output_merge_data.
>>>          * output.cc (Output_section::add_merge_input_section): Simplify
>>>          code and return status of Output_merge_base::add_input_section.
>>>          Update merge section map only if Output_merge_base::add_input_section
>>>          returns true.
>>
>> This is OK.
>>
>> Thanks.
>>
>> Ian
>>
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-09  0:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <u2z498552561004081641sc8a4eb3ci5e9a588634dbf6c3@mail.gmail.com>
     [not found] ` <mcr7hoha4az.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
     [not found]   ` <o2x498552561004081702h7f92adb9j25ad2faaa652a821@mail.gmail.com>
2010-04-09  0:48     ` [PATCH][GOLD] Avoid linker crashing when merge sections have uneven sizes David Daney

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