From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14749 invoked by alias); 21 Apr 2013 19:42:16 -0000 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 Received: (qmail 14739 invoked by uid 89); 21 Apr 2013 19:42:16 -0000 X-Spam-SWARE-Status: No, score=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mail-ob0-f176.google.com (HELO mail-ob0-f176.google.com) (209.85.214.176) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 21 Apr 2013 19:42:15 +0000 Received: by mail-ob0-f176.google.com with SMTP id wd20so4846476obb.35 for ; Sun, 21 Apr 2013 12:42:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=lvBt+Cd4D33ktm6ED4yXG4HX0TJGJtg+v5gqSvWm95k=; b=KOvSJ/tvZMC7PUzyQ9avcyRabQh1JPbQgpCEz9R89iy7Wpuux8GPzS38LSbSPrxoS1 4rjRWc3I+EczIXQ118sKZhLrqyd/KZ35GkeHkuzCLgmCc65G4v9ZZx+M/E3qY0biFCMc NkSrpe9/3yfxFc/k6z5ref5HhI0ncO5Nc7goqlufIW2auHou3BIh7DIbGx2GitZpZFGD ovHyhQQLs0qEJOsQDDcOoumJEx+vl1Zag/j0+Nz9I8uhcQLBSuw1+AwkfAJqxzV1/pQB NZVmWfFV8AEsHEsM/C2+zWCmvYttBaZhBwa59YX/j69g6SJouEHt/FC88vb9BfrFYk0K WQfQ== MIME-Version: 1.0 X-Received: by 10.60.76.234 with SMTP id n10mr13675787oew.63.1366573333723; Sun, 21 Apr 2013 12:42:13 -0700 (PDT) Received: by 10.60.50.40 with HTTP; Sun, 21 Apr 2013 12:42:13 -0700 (PDT) In-Reply-To: References: <10A84606-654D-4FBC-A66D-40BA39916061@gmail.com> Date: Sun, 21 Apr 2013 19:42:00 -0000 Message-ID: Subject: Re: gold linker: Access section start & end address w/o using a linker script From: Ian Lance Taylor To: Raphael Zulliger Cc: "binutils@sourceware.org" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmZ1LS6Em8rMUNN4vCgPQ27OCD88t5LD5F+QdXuiqao5C5elRMT6yqa4rFc/loyyYbzMIPEDeq5F1DH1zDOKS710GB8IAbwCyZebR3JXBXtEsw0kUczx8tzqNPgSskD/kq7ia8FS7ne+G92Ai08seEJTC+n3ZQN3N9WaRHLaDWhtLW2DPg4uFYdfoYOaJTsds6iLCdJ X-SW-Source: 2013-04/txt/msg00218.txt.bz2 On Sun, Apr 21, 2013 at 12:27 PM, Raphael Zulliger wrot= e: > Thanks Ian! > __start_SECNAME / __stop_SECNAME: I've been googling for something like t= his almost for hours=85 > > That certainly answers my question for "project specific" section names. = But I cant see yet how it solve my question for pre-defined sections like .= sbss, .sdata, etc.? Is there another trick I don't know yet? E.g. can I cre= ate section-aliasses or something like that? (again, a short google session= didn't give useful results) Yes, for those sections you do need to use a linker script, or to arrange for some file defining the appropriate symbols to be at the start and end of your link. For specialized purposes like this you do need to use a linker script with gold. gold is optimized to not use a linker script for the ordinary case of a hosted system. It's OK to use a linker script for an embedded system. Ian