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: ld -e number makes an entry in symbol table


On Wed, Sep 9, 2009 at 8:23 AM, Andreas Schwab<schwab@redhat.com> wrote:
> Kaz Kojima <kkojima@rr.iij4u.or.jp> writes:
>
>> With
>>
>> ? touch foo.s
>> ? as -o foo.o foo.s
>> ? ./ld-new -e 0x1000 -o foo foo.o
>> ? objdump -t foo
>>
>> I've got
>>
>> SYMBOL TABLE:
>> 00000000 ? ? ? ? *UND* ?00000000 0x1000
>
> This was broken by the patch for PR ld/6766.
>

Here is a patch.  OK to install?

Thanks.

-- 
H.J.
---
ld/

2009-09-09  H.J. Lu  <hongjiu.lu@intel.com>

	* lexsup.c (parse_args): Call ldlang_add_undef for -e only
	if the entry can't be parsed as a number.

ld/testsuite/

2009-09-09  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-undefined/entry-7.d: New.

Attachment: ld-entry-1.patch
Description: Text document


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