delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Rugxulo <rugxulo AT gmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: problem with AS from binutils 2.21.1 |
Date: | Mon, 2 Jan 2012 16:34:19 -0800 (PST) |
Organization: | http://groups.google.com |
Lines: | 25 |
Message-ID: | <1b8a3a38-882b-4056-9c3d-ed23db8ab4fb@f33g2000yqh.googlegroups.com> |
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> | |
NNTP-Posting-Host: | 65.13.115.246 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1325550859 17364 127.0.0.1 (3 Jan 2012 00:34:19 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Tue, 3 Jan 2012 00:34:19 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | f33g2000yqh.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO |
User-Agent: | G2/1.0 |
X-Google-Web-Client: | true |
X-Google-Header-Order: | HNKRAUELSC |
X-HTTP-UserAgent: | Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 |
(KHTML, like Gecko) Chrome/10.0.630.0 Safari/534.16,gzip(gfe) | |
Bytes: | 2355 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q030j1ij015739 |
Reply-To: | djgpp AT delorie DOT com |
Hi, On Jan 2, 5:43 pm, Hans-Bernhard Bröker <HBBroe DOT DOT DOT AT t-online DOT de> wrote: > On 02.01.2012 00:34, Rugxulo wrote: > > > objdump -r dsputil.o | wc > > 14320 42925 501408 > > objdump -r dsputil-nodebug.o | wc > > 1266 3788 41956 > > > 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. And BTW most of that is clearly due to debug stuff. objdump -t dsputil.o | grep -1o 'nreloc [0-9]\+' | awk '{ sum+= $2 } END { print sum}' ... gives me 68409, which is close to 68448 I had earlier ("objdump -r | wc -l").
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |