[RFA] Add bfd_get_section_lma to bfd-in.h

Michael Snyder msnyder@cygnus.com
Fri Apr 12 11:52:00 GMT 2002


2002-04-12  Michael Snyder  <msnyder@redhat.com>

	* bfd-in.h (bfd_get_section_lma): New access macro.
	Minor white-space fix-up.

Index: bfd-in.h
===================================================================
RCS file: /cvs/cvsfiles/devo/bfd/bfd-in.h,v
retrieving revision 1.181
diff -c -3 -p -r1.181 bfd-in.h
*** bfd-in.h	2002/03/17 21:24:34	1.181
--- bfd-in.h	2002/04/12 18:49:19
*************** typedef struct sec *sec_ptr;
*** 338,343 ****
--- 338,344 ----
  
  #define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0)
  #define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)
+ #define bfd_get_section_lma(bfd, ptr) ((ptr)->lma + 0)
  #define bfd_get_section_alignment(bfd, ptr) ((ptr)->alignment_power + 0)
  #define bfd_section_name(bfd, ptr) ((ptr)->name)
  #define bfd_section_size(bfd, ptr) (bfd_get_section_size_before_reloc(ptr))
*************** typedef struct sec *sec_ptr;
*** 349,355 ****
  
  #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
  
! #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma= (val)), ((ptr)->user_set_vma = (boolean)true), true)
  #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),true)
  #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),true)
  
--- 350,356 ----
  
  #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
  
! #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = (boolean)true), true)
  #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),true)
  #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),true)
  



More information about the Binutils mailing list