From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17609 invoked by alias); 6 Feb 2011 07:25:43 -0000 Received: (qmail 17597 invoked by uid 22791); 6 Feb 2011 07:25:41 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BJ,TW_JC,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pz0-f41.google.com (HELO mail-pz0-f41.google.com) (209.85.210.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 Feb 2011 07:25:37 +0000 Received: by pzk27 with SMTP id 27so998925pzk.0 for ; Sat, 05 Feb 2011 23:25:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.222.16 with SMTP id u16mr9386593wfg.299.1296970679692; Sat, 05 Feb 2011 21:37:59 -0800 (PST) Received: by 10.142.99.2 with HTTP; Sat, 5 Feb 2011 21:37:59 -0800 (PST) Date: Sun, 06 Feb 2011 07:25:00 -0000 Message-ID: Subject: questions about objcopy and -O option From: ali hagigat To: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2011-02/txt/msg00058.txt.bz2 When i use: objcopy -O binary....The man pages of objcopy says: "When objcopy generates a raw binary file, it will essentially produce a memory dump of the contents of the input object file. All symbols and relocation information will be discarded. The memory dump will start at the load address of the lowest section copied into the output file." By using objcopy i am creating an output file. So what is memory dump? Does it create any thing in memory? What is the content of this file? Only translated instructions, or it contains some extra reserved bytes? Suppose i had a ld script and set the start of my sections at 0xffffff00, after using objcopy it seems that all this information is removed. Is that right? Does compiler add any extra instructions to my code to remember those addresses? I mean by looking at the output file of objcopy I can see the address of 0xffffff00?