This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Make sure the .dynamic section is the first section inthe PTDYNAMIC segment (was Re: [PATCH] Explicitly get .dynamic section for"readelf -d")
- From: Nick Clifton <nickc at redhat dot com>
- To: Jie Zhang <zhangjie at magima dot com dot cn>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 09 Jul 2004 17:09:17 +0100
- Subject: Re: [PATCH] Make sure the .dynamic section is the first section inthe PTDYNAMIC segment (was Re: [PATCH] Explicitly get .dynamic section for"readelf -d")
- References: <40BDA689.7000303@magima.com.cn> <40C89C45.1020905@redhat.com> <40CD64F7.2030207@magima.com.cn> <40D32425.7000500@redhat.com> <40DB9CAE.9040809@magima.com.cn>
Hi Jie,
Later, I find the best place to add this check is
assign_file_positions_for_segments (). Here is the small patch. However,
I'm not sure that we should give a warn or error if the check fails.
This patch just gives an error.
Thanks - sorry for not replying sooner - I was swamped with other
stuff. Anyway I have approved and applied your patch now.
Cheers
Nick
bfd/ChangeLog
2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
* elf.c (assign_file_positions_for_segments): Make sure the
.dynamic section is the first section in the PT_DYNAMIC segment.