ld crash when PHDRS uses undefined names

Nick Clifton nickc@redhat.com
Thu Apr 24 12:52:00 GMT 2003


Hi Roland,

> 2003-04-23  Roland McGrath  <roland@redhat.com>
> 
> 	* ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
> 	If a name string is unknown, give an error rather than crashing later.

Approved - please apply.

Note - it would be cleaner if the phdr_types[] table had a direct
mapping between the name and its integer value, so that you did not 
have to have the special case code for the PT_GNU_EH_FRAME.  Still
this is not a high priority change.

Cheers
        Nick



More information about the Binutils mailing list