X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with AS from binutils 2.21.1 Date: Tue, 03 Jan 2012 23:44:19 +0100 Lines: 13 Message-ID: <9mhem2FkfgU2@mid.dfncis.de> References: <8a32880d-526c-40ac-a9bb-e88fce4ee2aa AT z25g2000vbs DOT googlegroups DOT com> <21258842-845d-4b87-9c29-52d0528e2ca0 AT dp8g2000vbb DOT googlegroups DOT com> <76df8c48-1463-43d1-98a1-4c32fb5c7643 AT t16g2000vba DOT googlegroups DOT com> <3e83fb36-219b-4314-8201-7f0047eb60d2 AT z12g2000yqm DOT googlegroups DOT com> <9metpcFndoU1 AT mid DOT dfncis DOT de> <1b8a3a38-882b-4056-9c3d-ed23db8ab4fb AT f33g2000yqh DOT googlegroups DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de sDkIREhVtwHydSgvkvkWtgPAZgMJXjpZZCu4bnWEGRdioG9livS8ljAUje Cancel-Lock: sha1:flZbNbs5PlDpoYVus/TyAkI0ZMM= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <1b8a3a38-882b-4056-9c3d-ed23db8ab4fb@f33g2000yqh.googlegroups.com> Bytes: 1771 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 03.01.2012 01:34, Rugxulo wrote: >>> Okay, so not exact by any means, but it's as close a reloc count as I >>> can guess (being a dummy, doh). Is there a better way without manually >>> reading the COFF headers? >> >> objdump -t file.o | grep -1 nreloc > > I don't think that works. That seems to list the reloc sections (sec > 1..14 [nx 1], then 1 [nx 0]), not individual relocs. Yet you did say you wanted a _count_ of relocs, not all individual ones. Whatever.