From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1347 invoked by alias); 16 Aug 2009 19:44:07 -0000 Received: (qmail 1337 invoked by uid 22791); 16 Aug 2009 19:44:07 -0000 X-SWARE-Spam-Status: No, hits=-49.0 required=5.0 tests=AWL,BAYES_00,CHARSET_FARAWAY_HEADER,J_CHICKENPOX_83,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Aug 2009 19:43:59 +0000 Received: from zps78.corp.google.com (zps78.corp.google.com [172.25.146.78]) by smtp-out.google.com with ESMTP id n7GJhunf002424 for ; Sun, 16 Aug 2009 20:43:56 +0100 Received: from rv-out-0708.google.com (rvfc5.prod.google.com [10.140.180.5]) by zps78.corp.google.com with ESMTP id n7GJhruO013128 for ; Sun, 16 Aug 2009 12:43:53 -0700 Received: by rv-out-0708.google.com with SMTP id c5so641305rvf.38 for ; Sun, 16 Aug 2009 12:43:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.148.15 with SMTP id v15mr1511640rvd.22.1250451833134; Sun, 16 Aug 2009 12:43:53 -0700 (PDT) In-Reply-To: References: <498552560908160241o52109b9bic6919898f73c485f@mail.gmail.com> Date: Mon, 17 Aug 2009 09:02:00 -0000 Message-ID: <498552560908161243o5e9bbf6ewd3c433af79ec30ee@mail.gmail.com> Subject: Re: Target specific Relobj? From: =?Big5?B?RG91ZyBLd2FuICjD9q62vHcp?= To: Ian Lance Taylor Cc: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00272.txt.bz2 Yes, that is simpler and better. I will make a patch. Thanks. -Doug 2009/8/16 Ian Lance Taylor : > Probably the way to do it is to always call the target to create the > object. =A0Then the hook would simply be > > =A0 template > =A0 make_object(const elfcpp::Ehdr&); > > with the obvious default implementation. > > Admittedly targets which needed to override this would have to > explicitly instantiate the required forms of the function. =A0This would > also mean reworking the current way that set_target works, to call > select_target before creating the object. > > Ian >