From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by sourceware.org (Postfix) with ESMTPS id 633173857708 for ; Mon, 22 Jan 2024 17:19:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 633173857708 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=fluendo.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fluendo.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 633173857708 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1132 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705943965; cv=none; b=idC7imPcRtTGcLWCt5v2tU1mQ2QYXgi+gyL/ZeZx7SwKVY9umq0WTy8PFGhAok6Sp/2p9HTv5Q47qVq4/ZyFodN+Ao0eYOnoHwjwuLVXsQYFJjVUW0Sn1fFt6jqnfOZbwma5i3Y2Rjx01K1n+x6SBc/djlN4ccCn5gwJzL9ANGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705943965; c=relaxed/simple; bh=XTFlsnSNDA4iJ56yPtNR1i9THjw6XOgFyosKX9LxO3E=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=D2/bJ88wvsmjVitkvQXA3Kneceg/5mIKdTyCC4o3pH18ELhG3UiwFt6lXgKoSEwM6FAG/az+EDlVJUIibGLVtyUfenoa1A3EfL/ZCXaexXg67TKyLaZ8P7IIY7oJOHC0NA2XNAIl6GXkixAg0ri3Z6npGKbWz34BIk3zBURMTZI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5edbcdc323dso33422617b3.3 for ; Mon, 22 Jan 2024 09:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fluendo.com; s=google; t=1705943963; x=1706548763; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XTFlsnSNDA4iJ56yPtNR1i9THjw6XOgFyosKX9LxO3E=; b=JzY5f4PQaqhgkg23lpv7fBT94j0JMag1lctCxHejaJdahJJgD2P5X0WUkgBpMriTp7 z+i40rxa8Y5CCGfvNPj3UhiH4oqA4b+4hkxaNUmqQuLtUwm9ZEvAjPiSwntuFEK8uiQc +wih0o6vNt0thmNZ3xZHU7iPlW7wZFSsHH+Xw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705943963; x=1706548763; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XTFlsnSNDA4iJ56yPtNR1i9THjw6XOgFyosKX9LxO3E=; b=pIkROrUO10BA9P9QGGFUjYmHv/iVhpTCOCLQUNQzNSdrbjmcpYVpO3d6DK6l/5to1u 0MwXH95GPcpU7garAkIAja5UOD9rJVdY7tKZjPac+n/hRlH9YjBLSNiDslzR9OBnrgKI svSTc7BuOFW86gCcZ8enjJyKkMNMgbJUbFg3zDXsGZqfI1jlH+XUOopzKLtpR/eU4pWs iAQRtnuieN5N7X9BxzaZIns2F3RzJhz6Ns1fLVm+iZFqD+/31yGyP5IPMuKUaBSbdAnz N75gesB5mfEznBQJxntSGeifpKaNlitbyI2RWwdfykGbQxQG9aeSUFX7Qq1PLUE5fwCf 5KFQ== X-Gm-Message-State: AOJu0YwprrCgokNQ/4K52iywrVi3SM5xlPGatnH63x7BNy+KUpqWFCn0 1T7o0qV014cP6FqX8gTVrWJ0y2gj9U6n6fSt89QxSb1JKM3IypA0jF0y5buwNIlMSv4kVlOem8t Vbg5Y8TFNgCWOm6WisFobVgwWCQnWmyr6Rct1MqY8gabQlueLd3xHD+rHtKHhFXOBfXbQjlm4c2 S1oNb+B8mAEMtgzzaMyXJzE7eWtLJnUDZsHAlT X-Google-Smtp-Source: AGHT+IGFos2SethFq/GdsJ4Fk09OfyGLQkE6QsmpS6eruTybtvTpuq8aUvreRNC+I92blIf4k6VM43t2YP/cunOvVrw= X-Received: by 2002:a0d:d1c5:0:b0:5ff:9bb9:5478 with SMTP id t188-20020a0dd1c5000000b005ff9bb95478mr4493021ywd.45.1705943963736; Mon, 22 Jan 2024 09:19:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Maxim Dementyev Date: Mon, 22 Jan 2024 18:19:12 +0100 Message-ID: Subject: Re: readelf --string-dump analog for objdump To: Jan Beulich Cc: binutils@sourceware.org Content-Type: multipart/alternative; boundary="000000000000f73875060f8c07ea" X-Spam-Status: No, score=3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_IMAGE_ONLY_16,HTML_MESSAGE,KAM_BADIPHTTP,NORMAL_HTTP_TO_IP,NUMERIC_HTTP_ADDR,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_REMOTE_IMAGE,T_SCC_BODY_TEXT_LINE,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000f73875060f8c07ea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 1:19=E2=80=AFPM Jan Beulich wro= te: > On 22.01.2024 13:11, Maxim Dementyev wrote: > > Unfortunately, apart from this, again, the objdump utility creates a > > formatted file as an output, and I can add --only-section to reduce the > > size of it and redirect it to /dev/null. > > But you're aware of objcopy's --output-target option, by using of which > you could have it produce a raw binary output file? > > I'm using GNU objcopy (Gentoo 2.41 p4) 2.41.0. There is no such a type for --output-target as raw (invalid bfd target), only binary; but this format produces a file with zero length. At the same time, if I do not use this option, by default it's elf64-x86-64 and the size is 816 bytes. The file generated by --dump-section has the length of 198 bytes, and this is all that I need, no other stuff. So I don't see how I can generate the same contents without --dump-section option, just by pointing out some other bfd format? Regards, Max --=20 --000000000000f73875060f8c07ea--